Function at 0x100315d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x28], edx
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x100315f6
mov ecx, dword [esi]
call dword [esi + 4]
mov dword [esi + 0xb4], 0
mov eax, dword [esi + 0xac]
test eax, eax
je 0x10031610
mov eax, dword [esi + 0xd0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
mov ecx, esi
call fcn.10033ca0
test eax, eax
jne 0x10031f9f
mov edi, dword [esi + 0xb8]
mov ecx, dword [esi + 0xbc]
mov eax, edi
mov dword [esp + 0x10], edi
or eax, ecx
mov dword [esp + 0x20], edi
jne 0x1003169f
mov ecx, dword [esi]
call dword [esi + 8]
test eax, eax
jne 0x10031655
mov edx, edi
mov ecx, esi
call fcn.10033cf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
lea edx, [esp + 0x30]
mov ecx, esi
call fcn.10032560
lea ebx, [esi + 0x58]
lea edx, [esi + 0x1e9c]
mov ecx, ebx
call fcn.100320a0
mov ecx, dword [esi]
call dword [esi + 0xc]
sub eax, dword [esi + 0x34]
mov cl, byte [eax]
mov byte [esp + 0x24], cl
mov ecx, ebx
mov edx, dword [esp + 0x24]
and edx, 0xff
push edx
mov edx, dword [esi + 0x50]
call fcn.100320e0
mov ecx, dword [esi + 0x34]
dec ecx
inc edi
mov dword [esi + 0x34], ecx
mov dword [esp + 0x10], edi
mov ecx, dword [esi]
call dword [esi + 8]
test eax, eax
je 0x10031f6f
lea ebp, [esi + 0x58]
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x100316c6
mov ecx, esi
call fcn.10033990
mov dword [esp + 0x14], eax
jmp 0x10031705
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
cmp eax, ecx
jne 0x100316e1
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.100325f0
mov dword [esp + 0x14], eax
jmp 0x10031705
mov eax, ecx
shl eax, 5
inc ecx
mov edx, dword [eax + esi + 0xbd2c]
lea eax, [eax + esi + 0xbd24]
mov dword [esp + 0x14], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x4c]
mov edi, dword [ebp]
and eax, ecx
mov ecx, dword [esi + 0x2c]
mov ebx, dword [esi + 0x90]
shl ecx, 4
add ecx, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov ax, word [esi + ecx*2 + 0x1e9c]
lea edx, [esi + ecx*2 + 0x1e9c]
mov ecx, edi
shr ecx, 0xb
imul ecx, eax
cmp ebx, 0xffffffff
jne 0x100317ef
mov ebx, 0x800
mov edi, ecx
sub ebx, eax
shr ebx, 5
add ebx, eax
cmp ecx, 0x1000000
mov word [edx], bx
jae 0x1003176a
shl ecx, 8
mov edi, ecx
mov ecx, ebp
call fcn.10031fb0
mov ecx, dword [esi]
mov dword [ebp], edi
call dword [esi + 0xc]
mov ecx, dword [esi + 0x34]
mov ebx, dword [esi + 0x48]
sub eax, ecx
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dl, byte [eax - 1]
shl ecx, 8
add edx, ecx
mov ecx, dword [esi + 0x94]
and edx, ebx
shl edx, cl
mov ecx, dword [esi + 0x50]
lea edx, [edx + edx*2]
lea edi, [ecx + edx*2]
mov dl, byte [eax]
mov ecx, dword [esi + 0x2c]
mov byte [esp + 0x24], dl
xor edx, edx
cmp ecx, 7
mov dl, byte [ecx + 0x100c7ff8]
mov dword [esi + 0x2c], edx
jae 0x100317cc
mov eax, dword [esp + 0x24]
mov edx, edi
and eax, 0xff
mov ecx, ebp
push eax
call fcn.100320e0
jmp 0x10031e90
mov ebx, dword [esi + 0x38]
mov edx, dword [esp + 0x24]
sub eax, ebx
xor ecx, ecx
and edx, 0xff
mov cl, byte [eax]
push ecx
push edx
mov edx, edi
mov ecx, ebp
call fcn.10032180
jmp 0x10031e90
sub edi, ecx
add dword [esi + 0x60], ecx
mov ecx, dword [esi + 0x64]
adc ecx, 0
mov dword [esi + 0x64], ecx
mov ecx, eax
shr ecx, 5
sub eax, ecx
cmp edi, 0x1000000
mov word [edx], ax
jae 0x10031819
mov ecx, ebp
shl edi, 8
call fcn.10031fb0
mov edx, dword [esi + 0x2c]
xor eax, eax
mov ecx, edi
mov ax, word [esi + edx*2 + 0x1e3c]
lea edx, [esi + edx*2 + 0x1e3c]
shr ecx, 0xb
imul ecx, eax
cmp ebx, 4
jae 0x10031a97
sub edi, ecx
add dword [esi + 0x60], ecx
mov ecx, dword [esi + 0x64]
adc ecx, 0
mov dword [esi + 0x64], ecx
mov ecx, eax
shr ecx, 5
sub eax, ecx
cmp edi, 0x1000000
mov word [edx], ax
jae 0x10031868
mov ecx, ebp
shl edi, 8
call fcn.10031fb0
mov edx, dword [esi + 0x2c]
xor eax, eax
mov ecx, edi
mov ax, word [esi + edx*2 + 0x1e54]
lea edx, [esi + edx*2 + 0x1e54]
shr ecx, 0xb
imul ecx, eax
test ebx, ebx
jne 0x10031920
mov ebx, 0x800
mov edi, ecx
sub ebx, eax
shr ebx, 5
add ebx, eax
cmp ecx, 0x1000000
mov word [edx], bx
jae 0x100318b1
shl ecx, 8
mov edi, ecx
mov ecx, ebp
call fcn.10031fb0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
shl eax, 4
mov ebx, dword [esp + 0x14]
add eax, ecx
mov ecx, edi
lea edx, [esi + eax*2 + 0x201c]
xor eax, eax
shr ecx, 0xb
mov ax, word [edx]
imul ecx, eax
cmp ebx, 1
je 0x100318fc
mov ebx, dword [esi + 0x60]
sub edi, ecx
add ebx, ecx
mov dword [esi + 0x60], ebx
mov ecx, dword [esi + 0x64]
adc ecx, 0
mov dword [esi + 0x64], ecx
mov ecx, eax
shr ecx, 5
sub eax, ecx
mov word [edx], ax
jmp 0x10031a1a
mov edi, ecx
mov ecx, 0x800
sub ecx, eax
shr ecx, 5
add ecx, eax
xor eax, eax
mov word [edx], cx
mov edx, dword [esi + 0x2c]
mov al, byte [edx + 0x100c801c]
mov dword [esi + 0x2c], eax
jmp 0x10031a1a
sub edi, ecx
add dword [esi + 0x60], ecx
mov ecx, dword [esi + 0x64]
adc ecx, 0
mov dword [esi + 0x64], ecx
mov ecx, eax
shr ecx, 5
sub eax, ecx
cmp edi, 0x1000000
mov word [edx], ax
jae 0x1003194a
mov ecx, ebp
shl edi, 8
call fcn.10031fb0
mov edx, dword [esi + 0x2c]
xor eax, eax
mov ecx, edi
mov ax, word [esi + edx*2 + 0x1e6c]
lea edx, [esi + edx*2 + 0x1e6c]
shr ecx, 0xb
imul ecx, eax
cmp ebx, 1
jne 0x10031984
mov edi, ecx
mov ecx, 0x800
sub ecx, eax
shr ecx, 5
add ecx, eax
mov word [edx], cx
mov eax, dword [esi + 0x3c]
jmp 0x10031a11
sub edi, ecx
add dword [esi + 0x60], ecx
mov ecx, dword [esi + 0x64]
adc ecx, 0
mov dword [esi + 0x64], ecx
mov ecx, eax
shr ecx, 5
sub eax, ecx
cmp edi, 0x1000000
mov word [edx], ax
jae 0x100319ae
mov ecx, ebp
shl edi, 8
call fcn.10031fb0
mov edx, dword [esi + 0x2c]
xor eax, eax
mov ecx, edi
mov ax, word [esi + edx*2 + 0x1e84]
lea edx, [esi + edx*2 + 0x1e84]
shr ecx, 0xb
imul ecx, eax
cmp ebx, 2
jne 0x100319e5
mov edi, ecx
mov ecx, 0x800
sub ecx, eax
shr ecx, 5
add ecx, eax
mov word [edx], cx
mov eax, dword [esi + 0x40]
jmp 0x10031a0b
mov ebx, dword [esi + 0x60]
sub edi, ecx
add ebx, ecx
mov dword [esi + 0x60], ebx
mov ecx, dword [esi + 0x64]
adc ecx, 0
mov dword [esi + 0x64], ecx
mov ecx, eax
shr ecx, 5
sub eax, ecx
mov word [edx], ax
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x44], edx
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x40], ecx
mov edx, dword [esi + 0x38]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
cmp edi, 0x1000000
jae 0x10031a2c
mov ecx, ebp
shl edi, 8
call fcn.10031fb0
mov eax, dword [esp + 0x14]
mov dword [ebp], edi
cmp eax, 1
je 0x10031e90
mov ebx, dword [esp + 0x18]
lea edi, [esi + 0x289c]
add eax, 0xfffffffe
push ebx
push eax
mov edx, ebp
mov ecx, edi
call fcn.10032310
mov eax, dword [esi + 0xa4]
test eax, eax
jne 0x10031a84
mov eax, dword [esi + ebx*4 + 0x78e4]
dec eax
mov dword [esi + ebx*4 + 0x78e4], eax
jne 0x10031a84
lea ecx, [esi + 0x748]
mov edx, ebx
push ecx
push edi
lea ecx, [esi + 0x78e0]
call fcn.10030c80
mov edx, dword [esi + 0x2c]
xor eax, eax
mov al, byte [edx + 0x100c8010]
mov dword [esi + 0x2c], eax
jmp 0x10031e90
mov edi, 0x800
mov dword [esp + 0x1c], ecx
sub edi, eax
shr edi, 5
add edi, eax
cmp ecx, 0x1000000
mov word [edx], di
jae 0x10031ac0
shl ecx, 8
mov edi, ecx
mov ecx, ebp
call fcn.10031fb0
jmp 0x10031ac4
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x2c]
mov eax, dword [esp + 0x14]
xor edx, edx
mov dword [ebp], edi
mov dl, byte [ecx + str._a_a_a_a_a_a_a_n_n_n_n_n_b_b_b_b_b_b_b_v_v_v_v_v_t_t_t_t_t_t_t_v_v_v_v_v]
mov ecx, dword [esp + 0x18]
add eax, 0xfffffffe
lea edi, [esi + 0x249c]
mov dword [esi + 0x2c], edx
push ecx
push eax
mov edx, ebp
mov ecx, edi
mov dword [esp + 0x34], eax
call fcn.10032310
mov eax, dword [esi + 0xa4]
test eax, eax
jne 0x10031b27
mov edx, dword [esp + 0x18]
mov eax, dword [esi + edx*4 + 0x34a0]
dec eax
mov dword [esi + edx*4 + 0x34a0], eax
jne 0x10031b27
lea eax, [esi + 0x748]
lea ecx, [esi + 0x349c]
push eax
push edi
call fcn.10030c80
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x38]
sub ebx, 4
mov edx, dword [esi + 0x3c]
mov dword [esi + 0x44], ecx
mov dword [esi + 0x40], edx
lea ecx, [ebx + 1]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], ecx
mov ecx, dword [esi + 0xc0]
inc ecx
cmp ebx, 0x80
mov dword [esi + 0xc0], ecx
jae 0x10031b67
mov edx, ebx
and edx, 0x7f
xor eax, eax
mov al, byte [edx + esi + 0x2c9c]
jmp 0x10031b85
cmp ebx, 0x20000
mov eax, ebx
sbb ecx, ecx
and ecx, 0xfffffff6
add ecx, 0x10
shr eax, cl
xor edx, edx
mov dl, byte [eax + esi + 0x2c9c]
lea eax, [edx + ecx*2]
mov ecx, dword [esp + 0x14]
mov edi, dword [ebp]
mov dword [esp + 0x1c], eax
add eax, 0x40
cmp ecx, 5
mov ecx, dword [esp + 0x2c]
jb 0x10031ba1
mov ecx, 3
shl ecx, 7
lea ecx, [ecx + esi + 0x219c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x2c]
mov edx, eax
shr edx, 6
lea ebp, [ecx + edx*2]
xor edx, edx
mov dword [esp + 0x18], ebp
mov ecx, eax
mov dx, word [ebp]
mov ebp, edi
shr ebp, 0xb
imul ebp, edx
shr ecx, 5
shl eax, 1
and ecx, 1
mov dword [esp + 0x30], eax
mov eax, ecx
neg eax
and edi, eax
and eax, ebp
sub edi, eax
add dword [esi + 0x60], eax
mov eax, dword [esi + 0x64]
adc eax, 0
mov dword [esi + 0x64], eax
lea eax, [ecx - 1]
mov ecx, eax
and eax, 0x7e1
sub eax, edx
and ecx, ebp
add eax, 0x1f
add edi, ecx
sar eax, 5
add eax, edx
mov edx, dword [esp + 0x18]
cmp edi, 0x1000000
mov word [edx], ax
jae 0x10031c23
lea ecx, [esi + 0x58]
shl edi, 8
call fcn.10031fb0
mov eax, dword [esp + 0x30]
cmp eax, 0x1000
jb 0x10031baf
lea ebp, [esi + 0x58]
cmp ebx, 4
mov dword [ebp], edi
jb 0x10031e90
mov eax, dword [esp + 0x1c]
mov edx, eax
shr edx, 1
dec edx
cmp ebx, 0x80
jae 0x10031c6e
and eax, 1
mov ecx, edx
or al, 2
shl eax, cl
mov ecx, ebp
sub ebx, eax
push ebx
push edx
lea edx, [esi + eax*2 + 0x239c]
call fcn.10032250
jmp 0x10031e90
mov ecx, 0x20
mov ebp, ebx
sub ecx, edx
or ebp, 0xf
shl ebp, cl
mov edx, dword [esi + 0x60]
mov eax, ebp
shr eax, 0x1f
shr edi, 1
neg eax
and eax, edi
add edx, eax
mov dword [esi + 0x60], edx
mov ecx, dword [esi + 0x64]
adc ecx, 0
add ebp, ebp
cmp edi, 0x1000000
mov dword [esi + 0x64], ecx
jae 0x10031cad
lea ecx, [esi + 0x58]
shl edi, 8
call fcn.10031fb0
cmp ebp, 0xf0000000
jne 0x10031c7c
xor ecx, ecx
mov edx, edi
mov cx, word [esi + 0x1e1e]
mov ebp, ebx
shr edx, 0xb
imul edx, ecx
and ebp, 1
mov dword [esp + 0x1c], edx
mov eax, ebp
neg eax
and edi, eax
and eax, edx
mov edx, dword [esi + 0x60]
sub edi, eax
shr ebx, 1
add edx, eax
mov dword [esi + 0x60], edx
mov eax, dword [esi + 0x64]
adc eax, 0
mov dword [esi + 0x64], eax
lea eax, [ebp - 1]
mov edx, eax
and eax, 0x7e1
and edx, dword [esp + 0x1c]
sub eax, ecx
add eax, 0x1f
sar eax, 5
add edi, edx
add eax, ecx
cmp edi, 0x1000000
mov word [esi + 0x1e1e], ax
jae 0x10031d20
lea ecx, [esi + 0x58]
shl edi, 8
call fcn.10031fb0
lea ecx, [ebp + 2]
xor eax, eax
mov dword [esp + 0x18], ecx
mov ebp, ebx
mov ax, word [esi + ecx*2 + 0x1e1c]
mov ecx, edi
shr ecx, 0xb
imul ecx, eax
and ebp, 1
mov edx, dword [esi + 0x60]
mov dword [esp + 0x30], eax
mov eax, ebp
neg eax
and edi, eax
and eax, ecx
shr ebx, 1
sub edi, eax
add edx, eax
mov dword [esi + 0x60], edx
mov edx, dword [esi + 0x64]
adc edx, 0
lea eax, [ebp - 1]
mov dword [esi + 0x64], edx
mov edx, eax
and edx, ecx
mov ecx, dword [esp + 0x30]
and eax, 0x7e1
add edi, edx
sub eax, ecx
add eax, 0x1f
sar eax, 5
add eax, ecx
mov ecx, dword [esp + 0x18]
cmp edi, 0x1000000
mov word [esi + ecx*2 + 0x1e1c], ax
jae 0x10031d9a
lea ecx, [esi + 0x58]
shl edi, 8
call fcn.10031fb0
mov edx, dword [esp + 0x18]
xor ecx, ecx
lea eax, [ebp + edx*2]
mov edx, edi
shr edx, 0xb
mov cx, word [esi + eax*2 + 0x1e1c]
mov ebp, ebx
imul edx, ecx
and ebp, 1
mov dword [esp + 0x18], eax
mov eax, ebp
mov dword [esp + 0x1c], edx
neg eax
and edi, eax
and eax, edx
mov edx, dword [esi + 0x60]
sub edi, eax
shr ebx, 1
add edx, eax
mov dword [esi + 0x60], edx
mov eax, dword [esi + 0x64]
adc eax, 0
mov dword [esi + 0x64], eax
lea eax, [ebp - 1]
mov edx, eax
and eax, 0x7e1
and edx, dword [esp + 0x1c]
sub eax, ecx
add eax, 0x1f
sar eax, 5
add eax, ecx
mov ecx, dword [esp + 0x18]
add edi, edx
cmp edi, 0x1000000
mov word [esi + ecx*2 + 0x1e1c], ax
jae 0x10031e17
lea ecx, [esi + 0x58]
shl edi, 8
call fcn.10031fb0
mov edx, dword [esp + 0x18]
xor ecx, ecx
and ebx, 1
lea ebp, [ebp + edx*2]
mov edx, edi
shr edx, 0xb
mov cx, word [esi + ebp*2 + 0x1e1c]
mov eax, ebx
imul edx, ecx
neg eax
and edi, eax
and eax, edx
sub edi, eax
add dword [esi + 0x60], eax
mov eax, dword [esi + 0x64]
adc eax, 0
mov dword [esi + 0x64], eax
lea eax, [ebx - 1]
mov ebx, eax
and eax, 0x7e1
sub eax, ecx
and ebx, edx
add eax, 0x1f
add edi, ebx
sar eax, 5
add eax, ecx
cmp edi, 0x1000000
mov word [esi + ebp*2 + 0x1e1c], ax
jae 0x10031e7d
lea ecx, [esi + 0x58]
shl edi, 8
call fcn.10031fb0
mov eax, dword [esi + 0xc4]
lea ebp, [esi + 0x58]
inc eax
mov dword [ebp], edi
mov dword [esi + 0xc4], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x34]
add edx, eax
sub ecx, eax
mov dword [esp + 0x10], edx
mov dword [esi + 0x34], ecx
jne 0x100316af
mov eax, dword [esi + 0xa4]
test eax, eax
jne 0x10031ed9
cmp dword [esi + 0xc0], 0x80
jb 0x10031ec9
mov ecx, esi
call fcn.10030f30
cmp dword [esi + 0xc4], 0x10
jb 0x10031ed9
mov ecx, esi
call fcn.10030e40
mov ecx, dword [esi]
call dword [esi + 8]
test eax, eax
je 0x10031f6f
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
sub eax, edx
test ecx, ecx
je 0x10031f2c
mov ecx, dword [esp + 0x38]
add eax, 0x112c
cmp eax, ecx
jae 0x10031f6f
mov eax, dword [esi + 0x80]
mov edx, dword [esi + 0x78]
mov ecx, dword [esi + 0x70]
sub eax, edx
add eax, ecx
mov ecx, dword [esi + 0x68]
lea edx, [eax + ecx + 0x2001]
mov eax, dword [esp + 0x28]
cmp edx, eax
jae 0x10031f6f
jmp 0x100316af
cmp eax, 0x20000
jb 0x100316af
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0xb8]
sub eax, edx
add ecx, eax
mov dword [esi + 0xb8], ecx
mov eax, dword [esi + 0xbc]
adc eax, 0
mov ecx, esi
mov dword [esi + 0xbc], eax
call fcn.10033ca0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov ecx, dword [esi + 0xb8]
mov eax, edx
sub eax, edi
add ecx, eax
mov dword [esi + 0xb8], ecx
mov eax, dword [esi + 0xbc]
adc eax, 0
mov ecx, esi
mov dword [esi + 0xbc], eax
call fcn.10033cf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4