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

Disassembly:
sub esp, 0x1c
push esi
mov esi, eax
cmp dword [esi + 0xb4], 0
je 0x40fd54
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push eax
call ecx
add esp, 4
mov dword [esi + 0xb4], 0
cmp dword [esi + 0xac], 0
je 0x40fd68
mov eax, dword [esi + 0xd8]
pop esi
add esp, 0x1c
ret
mov ecx, esi
call fcn.0040f570
test eax, eax
jne 0x410612
push ebx
mov ebx, dword [esi + 0xc0]
mov edx, ebx
or edx, dword [esi + 0xc4]
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
jne 0x40fdef
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
call ecx
add esp, 4
test eax, eax
jne 0x40fdb2
push ebx
mov ebx, esi
call fcn.0040f5c0
add esp, 4
pop edi
pop ebx
pop esi
add esp, 0x1c
ret
lea edx, [esp + 0x24]
push edx
mov eax, esi
call fcn.0040dd00
lea edi, [esi + 0x58]
lea ecx, [esi + 0x1ca0]
call fcn.0040d5b0
mov eax, dword [esi]
mov ecx, dword [esi + 0xc]
push eax
call ecx
sub eax, dword [esi + 0x34]
movzx edx, byte [eax]
mov eax, dword [esi + 0x50]
push edx
push eax
call fcn.0040d5f0
dec dword [esi + 0x34]
add esp, 0x10
inc ebx
mov dword [esp + 0x10], ebx
cmp dword [esi + 0x88], 9
jne 0x40fe0b
pop edi
pop ebx
mov dword [esi + 0xac], 1
xor eax, eax
pop esi
add esp, 0x1c
ret
mov ecx, dword [esi]
mov edx, dword [esi + 8]
push ebp
push ecx
call edx
add esp, 4
test eax, eax
je 0x4105ed
nop
cmp dword [esi + 0xa4], 0
je 0x40fe34
call fcn.0040f0d0
mov dword [esp + 0x10], eax
jmp 0x40fe70
mov ecx, dword [esi + 0x18]
cmp dword [esi + 0x1c], ecx
jne 0x40fe50
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0040de40
add esp, 8
mov dword [esp + 0x10], eax
jmp 0x40fe70
mov edx, ecx
shl edx, 5
lea eax, [edx + esi + 0xbaa8]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
inc ecx
mov dword [esp + 0x10], edx
mov dword [esi + 0x90], eax
mov dword [esi + 0x18], ecx
mov ecx, dword [esi + 0x2c]
mov eax, dword [esp + 0x14]
and eax, dword [esi + 0x4c]
mov ebx, dword [esi + 0x58]
mov edi, dword [esi + 0x90]
add ecx, 0xe5
shl ecx, 4
add ecx, eax
lea ebp, [esi + 0x58]
mov dword [esp + 0x18], eax
lea edx, [esi + ecx*2]
movzx ecx, word [edx]
mov eax, ebx
shr eax, 0xb
imul eax, ecx
cmp edi, 0xffffffff
jne 0x40ff42
mov ebx, 0x800
sub ebx, ecx
shr ebx, 5
add ebx, ecx
mov edi, eax
mov word [edx], bx
cmp eax, 0x1000000
jae 0x40fed0
shl eax, 8
mov edi, eax
mov eax, ebp
call fcn.0040d4f0
mov edx, dword [esi]
mov eax, dword [esi + 0xc]
push edx
mov dword [ebp], edi
call eax
sub eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x18]
movzx edx, byte [eax - 1]
mov bl, byte [eax]
shl ecx, 8
add edx, ecx
and edx, dword [esi + 0x48]
mov ecx, dword [esi + 0x94]
shl edx, cl
mov ecx, dword [esi + 0x50]
add esp, 4
lea edx, [edx + edx*2]
lea edx, [ecx + edx*2]
mov ecx, dword [esi + 0x2c]
movzx edi, byte [ecx + 0x45ec9c]
mov dword [esi + 0x2c], edi
mov edi, ebp
cmp ecx, 7
jae 0x40ff2a
movzx eax, bl
push eax
push edx
call fcn.0040d5f0
add esp, 8
jmp 0x410501
sub eax, dword [esi + 0x38]
movzx ecx, byte [eax]
push ecx
movzx eax, bl
push edx
call fcn.0040d680
add esp, 8
jmp 0x410501
sub ebx, eax
add dword [esi + 0x60], eax
mov eax, ecx
adc dword [esi + 0x64], 0
shr eax, 5
sub ecx, eax
mov word [edx], cx
cmp ebx, 0x1000000
jae 0x40ff67
mov eax, ebp
shl ebx, 8
call fcn.0040d4f0
mov ecx, dword [esi + 0x2c]
lea edx, [esi + ecx*2 + 0x1c40]
movzx ecx, word [edx]
mov eax, ebx
shr eax, 0xb
imul eax, ecx
cmp edi, 4
jae 0x410182
sub ebx, eax
add dword [esi + 0x60], eax
mov eax, ecx
adc dword [esi + 0x64], 0
shr eax, 5
sub ecx, eax
mov word [edx], cx
cmp ebx, 0x1000000
jae 0x40ffaa
mov eax, ebp
shl ebx, 8
call fcn.0040d4f0
mov ecx, dword [esi + 0x2c]
lea edx, [esi + ecx*2 + 0x1c58]
movzx ecx, word [edx]
mov eax, ebx
shr eax, 0xb
imul eax, ecx
test edi, edi
jne 0x41004c
mov edi, 0x800
sub edi, ecx
shr edi, 5
add edi, ecx
mov ebx, eax
mov word [edx], di
cmp eax, 0x1000000
jae 0x40ffeb
shl eax, 8
mov ebx, eax
mov eax, ebp
call fcn.0040d4f0
mov edx, dword [esi + 0x2c]
add edx, 0xf1
shl edx, 4
add edx, dword [esp + 0x18]
movzx eax, word [esi + edx*2]
lea edx, [esi + edx*2]
mov ecx, ebx
shr ecx, 0xb
imul ecx, eax
cmp dword [esp + 0x10], 1
je 0x410029
sub ebx, ecx
add dword [esi + 0x60], ecx
mov ecx, eax
adc dword [esi + 0x64], 0
shr ecx, 5
sub eax, ecx
mov word [edx], ax
jmp 0x41012b
mov ebx, ecx
mov ecx, 0x800
sub ecx, eax
shr ecx, 5
add ecx, eax
mov word [edx], cx
mov edx, dword [esi + 0x2c]
movzx eax, byte [edx + 0x45ecc0]
mov dword [esi + 0x2c], eax
jmp 0x41012b
sub ebx, eax
add dword [esi + 0x60], eax
mov eax, ecx
adc dword [esi + 0x64], 0
shr eax, 5
sub ecx, eax
mov word [edx], cx
cmp ebx, 0x1000000
jae 0x410071
mov eax, ebp
shl ebx, 8
call fcn.0040d4f0
mov ecx, dword [esi + 0x2c]
movzx eax, word [esi + ecx*2 + 0x1c70]
lea edx, [esi + ecx*2 + 0x1c70]
mov ecx, ebx
shr ecx, 0xb
imul ecx, eax
cmp edi, 1
jne 0x4100a6
mov ebx, ecx
mov ecx, 0x800
sub ecx, eax
shr ecx, 5
add ecx, eax
mov word [edx], cx
mov eax, dword [esi + 0x3c]
jmp 0x410122
sub ebx, ecx
add dword [esi + 0x60], ecx
mov ecx, eax
adc dword [esi + 0x64], 0
shr ecx, 5
sub eax, ecx
mov word [edx], ax
cmp ebx, 0x1000000
jae 0x4100cb
mov eax, ebp
shl ebx, 8
call fcn.0040d4f0
mov edx, dword [esi + 0x2c]
movzx eax, word [esi + edx*2 + 0x1c88]
lea edx, [esi + edx*2 + 0x1c88]
mov ecx, ebx
shr ecx, 0xb
imul ecx, eax
cmp edi, 2
jne 0x410100
mov ebx, ecx
mov ecx, 0x800
sub ecx, eax
shr ecx, 5
add ecx, eax
mov word [edx], cx
mov eax, dword [esi + 0x40]
jmp 0x41011c
sub ebx, ecx
add dword [esi + 0x60], ecx
mov ecx, eax
adc dword [esi + 0x64], 0
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 + 0x3c], edx
mov dword [esi + 0x38], eax
cmp ebx, 0x1000000
jae 0x41013d
mov eax, ebp
shl ebx, 8
call fcn.0040d4f0
cmp dword [esp + 0x10], 1
mov dword [ebp], ebx
je 0x410501
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
add ecx, 0xfffffffe
push ecx
lea edx, [esi + 0x26a0]
push edx
lea eax, [esi + 0x58]
call fcn.0040d910
mov eax, dword [esi + 0x2c]
add esp, 0xc
dec dword [esi + 0xcc]
movzx ecx, byte [eax + 0x45ecb4]
mov dword [esi + 0x2c], ecx
jmp 0x410501
mov ebp, 0x800
sub ebp, ecx
shr ebp, 5
add ebp, ecx
mov ebx, eax
mov word [edx], bp
cmp eax, 0x1000000
jae 0x4101a7
shl eax, 8
mov ebx, eax
lea eax, [esi + 0x58]
call fcn.0040d4f0
mov edx, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
lea ebp, [esi + 0x58]
mov dword [ebp], ebx
movzx eax, byte [edx + 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 dword [esi + 0x2c], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffffe
push ecx
push eax
lea edx, [esi + 0x22a0]
mov dword [esp + 0x2c], eax
push edx
mov eax, ebp
call fcn.0040d910
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x38]
inc dword [esi + 0xc8]
sub edi, 4
mov dword [esi + 0x44], eax
add esp, 0xc
lea eax, [edi + 1]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x38], eax
cmp edi, 0x80
jae 0x410214
mov ecx, edi
and ecx, 0x7f
movzx ecx, byte [ecx + esi + 0x2aa0]
jmp 0x410231
cmp edi, 0x20000
sbb ecx, ecx
and ecx, 0xfffffff6
add ecx, 0x10
mov edx, edi
shr edx, cl
movzx eax, byte [edx + esi + 0x2aa0]
lea ecx, [eax + ecx*2]
mov ebx, dword [ebp]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
add ecx, 0x40
cmp dword [esp + 0x10], 5
mov dword [esp + 0x18], ecx
jb 0x41024f
mov eax, 3
shl eax, 7
lea ecx, [eax + esi + 0x1fa0]
mov dword [esp + 0x24], ecx
lea ecx, [ecx]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov edx, eax
shr edx, 6
movzx ebp, word [ecx + edx*2]
lea edx, [ecx + edx*2]
mov ecx, eax
mov dword [esp + 0x28], edx
add eax, eax
mov edx, ebx
shr edx, 0xb
imul edx, ebp
mov dword [esp + 0x18], eax
shr ecx, 5
and ecx, 1
mov eax, ecx
neg eax
and ebx, eax
and eax, edx
sub ebx, eax
add dword [esi + 0x60], eax
lea eax, [ecx - 1]
mov ecx, eax
adc dword [esi + 0x64], 0
and eax, 0x7e1
sub eax, ebp
add eax, 0x1f
and ecx, edx
mov edx, dword [esp + 0x28]
sar eax, 5
add ebx, ecx
add eax, ebp
mov word [edx], ax
cmp ebx, 0x1000000
jae 0x4102d1
lea eax, [esi + 0x58]
shl ebx, 8
call fcn.0040d4f0
cmp dword [esp + 0x18], 0x1000
jb 0x410260
lea ebp, [esi + 0x58]
mov dword [ebp], ebx
cmp edi, 4
jb 0x410501
mov edx, dword [esp + 0x1c]
mov eax, edx
shr eax, 1
dec eax
cmp edi, 0x80
jae 0x41031e
and edx, 1
mov ecx, eax
or edx, 2
shl edx, cl
push edi
push eax
mov ebx, ebp
lea eax, [esi + edx*2 + 0x21a0]
push eax
call fcn.0040d830
add esp, 0xc
jmp 0x410501
mov ecx, 0x20
mov ebp, edi
sub ecx, eax
or ebp, 0xf
shl ebp, cl
lea esp, [esp]
mov ecx, ebp
shr ecx, 0x1f
shr ebx, 1
neg ecx
and ecx, ebx
add dword [esi + 0x60], ecx
adc dword [esi + 0x64], 0
add ebp, ebp
cmp ebx, 0x1000000
jae 0x410357
lea eax, [esi + 0x58]
shl ebx, 8
call fcn.0040d4f0
cmp ebp, 0xf0000000
jne 0x410330
movzx ecx, word [esi + 0x1c22]
mov edx, ebx
shr edx, 0xb
imul edx, ecx
mov ebp, edi
and ebp, 1
mov eax, ebp
neg eax
and ebx, eax
and eax, edx
sub ebx, eax
shr edi, 1
add dword [esi + 0x60], eax
lea eax, [ebp - 1]
mov dword [esp + 0x28], edx
adc dword [esi + 0x64], 0
mov edx, eax
and edx, dword [esp + 0x28]
and eax, 0x7e1
sub eax, ecx
add eax, 0x1f
sar eax, 5
add ebx, edx
add eax, ecx
mov word [esi + 0x1c22], ax
cmp ebx, 0x1000000
jae 0x4103be
lea eax, [esi + 0x58]
shl ebx, 8
call fcn.0040d4f0
lea eax, [ebp + 2]
mov dword [esp + 0x18], eax
movzx eax, word [esi + eax*2 + 0x1c20]
mov ecx, ebx
shr ecx, 0xb
imul ecx, eax
mov dword [esp + 0x1c], eax
mov ebp, edi
and ebp, 1
mov eax, ebp
neg eax
and ebx, eax
and eax, ecx
sub ebx, eax
shr edi, 1
add dword [esi + 0x60], eax
lea eax, [ebp - 1]
mov edx, eax
adc dword [esi + 0x64], 0
and edx, ecx
mov ecx, dword [esp + 0x1c]
and eax, 0x7e1
sub eax, ecx
add eax, 0x1f
sar eax, 5
add eax, ecx
mov ecx, dword [esp + 0x18]
add ebx, edx
mov word [esi + ecx*2 + 0x1c20], ax
cmp ebx, 0x1000000
jae 0x41042c
lea eax, [esi + 0x58]
shl ebx, 8
call fcn.0040d4f0
mov edx, dword [esp + 0x18]
lea eax, [ebp + edx*2]
mov dword [esp + 0x18], eax
movzx eax, word [esi + eax*2 + 0x1c20]
mov ecx, ebx
shr ecx, 0xb
imul ecx, eax
mov dword [esp + 0x1c], eax
mov ebp, edi
and ebp, 1
mov eax, ebp
neg eax
and ebx, eax
and eax, ecx
sub ebx, eax
shr edi, 1
add dword [esi + 0x60], eax
lea eax, [ebp - 1]
mov edx, eax
adc dword [esi + 0x64], 0
and edx, ecx
mov ecx, dword [esp + 0x1c]
and eax, 0x7e1
sub eax, ecx
add eax, 0x1f
sar eax, 5
add eax, ecx
mov ecx, dword [esp + 0x18]
add ebx, edx
mov word [esi + ecx*2 + 0x1c20], ax
cmp ebx, 0x1000000
jae 0x41049f
lea eax, [esi + 0x58]
shl ebx, 8
call fcn.0040d4f0
mov edx, dword [esp + 0x18]
lea ebp, [ebp + edx*2]
and edi, 1
mov eax, edi
movzx edi, word [esi + ebp*2 + 0x1c20]
mov edx, ebx
shr edx, 0xb
imul edx, edi
mov ecx, eax
neg ecx
and ebx, ecx
and ecx, edx
sub ebx, ecx
add dword [esi + 0x60], ecx
adc dword [esi + 0x64], 0
dec eax
mov ecx, eax
and eax, 0x7e1
sub eax, edi
add eax, 0x1f
and ecx, edx
sar eax, 5
add ebx, ecx
add eax, edi
mov word [esi + ebp*2 + 0x1c20], ax
cmp ebx, 0x1000000
jae 0x4104fe
lea eax, [esi + 0x58]
shl ebx, 8
call fcn.0040d4f0
mov dword [esi + 0x58], ebx
cmp dword [esi + 0x88], 9
je 0x41063f
mov eax, dword [esp + 0x10]
add dword [esp + 0x14], eax
sub dword [esi + 0x34], eax
jne 0x40fe20
cmp dword [esi + 0xa4], 0
jne 0x4105a0
mov edi, 0x40
cmp dword [esi + 0xc8], edi
jb 0x41056a
mov eax, esi
call fcn.0040f600
mov edx, esi
call fcn.0040f920
mov ecx, dword [esi + 0x9c]
lea edx, [esi + 0x22a0]
push edx
mov edx, 1
shl edx, cl
lea ecx, [esi + 0x32a0]
lea eax, [esi + 0x550]
push edx
push ecx
call fcn.0040db90
cmp dword [esi + 0xcc], 0
jg 0x4105a0
mov ecx, dword [esi + 0x9c]
lea edx, [esi + 0x26a0]
push edx
mov edx, 1
shl edx, cl
lea ecx, [esi + 0x76a4]
lea eax, [esi + 0x550]
mov dword [esi + 0xcc], edi
push edx
push ecx
call fcn.0040db90
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
call eax
add esp, 4
test eax, eax
je 0x4105ed
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, ecx
sub eax, edx
cmp dword [esp + 0x30], 0
je 0x410617
add eax, 0x92c
cmp eax, dword [esp + 0x34]
jae 0x4105ed
mov ecx, dword [esi + 0x80]
sub ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x68]
add ecx, dword [esi + 0x70]
lea eax, [ecx + edx + 0x4000]
cmp eax, dword [esp + 0x30]
jb 0x40fe20
mov eax, dword [esp + 0x14]
mov ecx, eax
sub ecx, dword [esp + 0x20]
push eax
add dword [esi + 0xc0], ecx
mov ebx, esi
adc dword [esi + 0xc4], 0
call fcn.0040f5c0
add esp, 4
pop ebp
pop edi
pop ebx
pop esi
add esp, 0x1c
ret
cmp eax, 0x20000
jb 0x40fe20
sub ecx, edx
add dword [esi + 0xc0], ecx
pop ebp
pop edi
adc dword [esi + 0xc4], 0
pop ebx
mov ecx, esi
pop esi
add esp, 0x1c
jmp fcn.0040f570
pop ebp
pop edi
pop ebx
mov dword [esi + 0xac], 1
or eax, 0xffffffff
pop esi
add esp, 0x1c
ret