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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x208c
call fcn.0040bb60
mov eax, dword [0x439050]
xor eax, esp
mov dword [esp + 0x2088], eax
push ebx
mov ebx, ecx
push esi
push edi
mov esi, dword [ebx + 4]
mov edi, dword [ebx]
test esi, esi
jne 0x402db5
cmp edi, 0x16
jb 0x40355e
mov ecx, edi
mov edx, esi
sub ecx, 0x1000
sbb edx, 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
js 0x402dd2
jg 0x402df0
test ecx, ecx
jne 0x402df0
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
nop dword [eax + eax]
mov eax, edi
sub eax, ecx
sbb esi, edx
test esi, esi
jb 0x402e0a
ja 0x402e03
cmp eax, 0x1000
jbe 0x402e0a
mov edi, 0x1000
jmp 0x402e0c
sub edi, ecx
mov esi, dword [ebx + 0x38]
lea eax, [esp + 0x1090]
push edi
push eax
push edx
push ecx
push dword [ebx + 0x44]
mov ecx, esi
call dword [0x429180]
call esi
add esp, 0x14
cmp eax, edi
jne 0x40357c
lea ecx, [edi - 4]
test ecx, ecx
js 0x402e87
nop dword [eax]
cmp dword [esp + ecx + 0x1090], 0x6054b50
jne 0x402e7c
mov edi, dword [ebx]
mov eax, ecx
mov esi, dword [ebx + 4]
cdq
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x14]
sbb esi, edx
sub edi, dword [esp + 0x38]
sbb esi, dword [esp + 0x18]
test esi, esi
ja 0x402e83
jb 0x402e7c
cmp edi, 0x16
jae 0x402e83
sub ecx, 1
jns 0x402e40
jmp 0x402e87
test ecx, ecx
jns 0x402ecd
mov ecx, dword [esp + 0x10]
mov eax, ecx
mov edx, dword [esp + 0x14]
or eax, edx
je 0x40357c
mov edi, dword [ebx]
mov eax, edi
mov esi, dword [ebx + 4]
sub eax, ecx
mov dword [esp + 0x20], eax
mov eax, esi
sbb eax, edx
test eax, eax
ja 0x40357c
jb 0x402ec2
cmp dword [esp + 0x20], 0x10015
jae 0x40357c
sub ecx, 0xffd
jmp 0x402dbf
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x90]
mov esi, dword [ebx + 0x38]
add edi, eax
mov eax, dword [esp + 0x18]
push 0x16
push ecx
adc eax, edx
mov ecx, esi
push eax
push edi
push dword [ebx + 0x44]
mov dword [esp + 0x2c], eax
call dword [0x429180]
call esi
add esp, 0x14
cmp eax, 0x16
jne 0x4034bf
cmp dword [esp + 0x90], 0x6054b50
jne 0x40355e
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x402fba
jg 0x402f2d
cmp edi, 0x4c
jb 0x402fba
mov esi, dword [ebx + 0x38]
lea ecx, [esp + 0x44]
push 0x14
push ecx
add edi, 0xffffffec
mov ecx, esi
adc eax, 0xffffffff
push eax
push edi
push dword [ebx + 0x44]
call dword [0x429180]
call esi
add esp, 0x14
cmp eax, 0x14
jne 0x402fba
cmp dword [esp + 0x44], 0x7064b50
jne 0x402fba
mov esi, dword [ebx]
xor ecx, ecx
or ecx, dword [esp + 0x4c]
add esi, 0xffffffc8
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x50]
adc eax, 0xffffffff
cmp edx, eax
ja 0x40355e
jb 0x402f85
cmp ecx, esi
ja 0x40355e
mov esi, dword [ebx + 0x38]
lea eax, [esp + 0x58]
push 0x38
push eax
push edx
push ecx
push dword [ebx + 0x44]
mov ecx, esi
call dword [0x429180]
call esi
add esp, 0x14
cmp eax, 0x38
jne 0x402fba
cmp dword [esp + 0x58], 0x6064b50
jne 0x402fba
mov eax, dword [ebx + 0x48]
mov dword [eax + 0x34], 1
movzx eax, word [esp + 0x94]
mov edi, dword [ebx + 0x48]
movzx ecx, word [esp + 0x9a]
movzx edx, word [esp + 0x98]
movzx esi, word [esp + 0x96]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x9c]
mov dword [ebx + 0x10], ecx
cmp dword [edi + 0x34], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], edi
je 0x4030d8
mov eax, dword [esp + 0x7c]
xor esi, esi
or esi, dword [esp + 0x80]
xor ecx, ecx
or ecx, dword [esp + 0x78]
xor edx, edx
or edx, dword [esp + 0x70]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x10], esi
xor esi, esi
or esi, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x60]
or eax, 0
mov dword [esp + 0x3c], eax
ja 0x403060
cmp esi, 0x2c
jb 0x403504
cmp dword [esp + 0x54], 1
jne 0x403540
cmp dword [esp + 0x20], 0
ja 0x4032e0
jb 0x403081
cmp ecx, 0xffffffff
ja 0x4032e0
cmp dword [esp + 0x34], 0
mov dword [ebx + 0x10], ecx
ja 0x4032e0
jb 0x40309a
cmp edx, 0xffffffff
ja 0x4032e0
cmp dword [esp + 0x30], 0
ja 0x4032c2
cmp dword [esp + 0x10], 0xffffffff
ja 0x4032c2
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x8c]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x38], eax
xor eax, eax
or eax, dword [esp + 0x88]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
cmp ecx, edx
jne 0x403540
mov edx, dword [esp + 0x38]
mov eax, esi
or eax, edx
je 0x4030fb
cmp edx, 1
jne 0x403540
cmp esi, edx
jne 0x403540
mov esi, dword [esp + 0x10]
imul eax, ecx, 0x2e
cmp esi, eax
jb 0x403504
xor eax, eax
mov edx, esi
add edx, dword [esp + 0x2c]
adc eax, dword [esp + 0x14]
cmp eax, dword [ebx + 4]
ja 0x403504
jb 0x403129
cmp edx, dword [ebx]
ja 0x403504
mov eax, dword [esp + 0x2c]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xc], eax
test ecx, ecx
je 0x403495
cmp esi, dword [edi + 8]
jbe 0x40316e
push esi
push dword [edi + 0xc]
mov esi, dword [ebx + 0x30]
mov ecx, esi
push dword [edi]
push dword [ebx + 0x34]
call dword [0x429180]
call esi
add esp, 0x10
test eax, eax
je 0x4034dd
mov esi, dword [esp + 0x10]
mov dword [edi], eax
mov dword [edi + 8], esi
mov dword [edi + 4], esi
mov edi, dword [ebx + 0x48]
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x20], eax
cmp eax, dword [edi + 0x18]
jbe 0x4031ac
mov esi, dword [ebx + 0x30]
mov ecx, esi
push eax
push dword [edi + 0x1c]
push dword [edi + 0x10]
push dword [ebx + 0x34]
call dword [0x429180]
call esi
add esp, 0x10
test eax, eax
je 0x4034dd
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], eax
mov edi, dword [ebx + 0x48]
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x20], eax
cmp eax, dword [edi + 0x28]
jbe 0x4031ea
mov esi, dword [ebx + 0x30]
mov ecx, esi
push eax
push dword [edi + 0x2c]
push dword [edi + 0x20]
push dword [ebx + 0x34]
call dword [0x429180]
call esi
add esp, 0x10
test eax, eax
je 0x4034dd
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x28], eax
mov dword [edi + 0x24], eax
mov eax, dword [ebx + 0x48]
mov edi, dword [esp + 0x10]
mov esi, dword [ebx + 0x38]
mov ecx, esi
push edi
push dword [eax]
push dword [esp + 0x1c]
push dword [esp + 0x38]
push dword [ebx + 0x44]
call dword [0x429180]
call esi
add esp, 0x14
cmp eax, edi
jne 0x4034bf
mov eax, dword [ebx + 0x48]
xor esi, esi
mov dword [esp + 0x20], esi
mov edx, dword [eax]
mov dword [esp + 0x34], edx
cmp dword [ebx + 0x10], esi
jbe 0x403495
cmp edi, 0x2e
jb 0x403504
cmp dword [edx], 0x2014b50
jne 0x403504
mov eax, dword [ebx + 0x48]
mov ecx, edx
sub ecx, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [eax + esi*4], ecx
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x20]
mov dword [eax + esi*4], esi
xor esi, esi
mov eax, dword [edx + 0x14]
mov edi, dword [edx + 0x18]
mov ecx, dword [edx + 0x2a]
mov dword [esp + 0x18], eax
movzx eax, word [edx + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x1c], edi
cmp dword [eax + 0x38], esi
jne 0x4033cb
movzx edi, word [edx + 0x1e]
test edi, edi
je 0x4033c7
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x18], eax
jbe 0x40329e
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
xor eax, eax
cmp eax, esi
jb 0x403302
ja 0x4032b0
cmp dword [esp + 0x28], ecx
jbe 0x403302
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp dword [esp + 0x18], eax
jbe 0x4032fe
mov ecx, dword [esp + 0x18]
jmp 0x403302
mov dword [ebx + 0x1c], 0xf
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2088]
xor ecx, esp
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x1c], 2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2088]
xor ecx, esp
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret
mov ecx, eax
xor esi, esi
cmp ecx, 0xffffffff
jne 0x4033c7
test esi, esi
jne 0x4033c7
mov ecx, dword [esp + 0x30]
lea eax, [ecx + 0x2e]
add eax, edi
cmp eax, dword [esp + 0x10]
jbe 0x403371
push edi
call fcn.00411124
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
je 0x4034dd
push edi
push eax
mov eax, dword [esp + 0x38]
xor ecx, ecx
add eax, dword [esp + 0x34]
adc ecx, dword [esp + 0x1c]
add eax, 0x2e
adc ecx, esi
mov esi, dword [ebx + 0x38]
push ecx
push eax
push dword [ebx + 0x44]
mov ecx, esi
call dword [0x429180]
call esi
mov esi, dword [esp + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x4034b6
mov ecx, esi
jmp 0x403376
add ecx, 0x2e
add ecx, edx
cmp edi, 4
jb 0x4034fb
movzx edx, word [ecx + 2]
lea eax, [edx + 4]
cmp eax, edi
ja 0x4034fb
cmp word [ecx], 1
je 0x4033a6
add ecx, 4
mov eax, 0xfffffffc
sub eax, edx
add ecx, edx
add edi, eax
jne 0x403376
jmp 0x4033ba
mov eax, dword [ebx + 0x48]
mov dword [eax + 0x34], 1
mov eax, dword [ebx + 0x48]
mov dword [eax + 0x38], 1
push esi
call fcn.0041050f
mov edx, dword [esp + 0x38]
add esp, 4
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, 0xffffffff
jne 0x4033d8
xor ecx, ecx
jmp 0x403400
xor ecx, ecx
cmp edi, 0xffffffff
jne 0x4033e3
xor eax, eax
jmp 0x403400
xor eax, eax
cmp dword [edx + 0xa], eax
jne 0x4033f2
cmp edi, esi
jne 0x403504
or edi, eax
je 0x403400
mov eax, esi
or eax, ecx
je 0x403504
movzx eax, word [edx + 0x22]
cmp eax, 0xffff
je 0x403540
cmp eax, dword [esp + 0x38]
je 0x40341e
cmp eax, 1
jne 0x403540
cmp esi, 0xffffffff
jne 0x403427
test ecx, ecx
je 0x403449
mov ecx, dword [edx + 0x2a]
xor eax, eax
add ecx, esi
adc eax, eax
add ecx, 0x1e
adc eax, 0
cmp eax, dword [ebx + 4]
ja 0x403504
jb 0x403449
cmp ecx, dword [ebx]
ja 0x403504
mov eax, 0x2000
test word [edx + 8], ax
jne 0x403522
movzx eax, word [edx + 0x1e]
movzx ecx, word [edx + 0x20]
mov edi, dword [esp + 0x10]
add ecx, eax
movzx eax, word [edx + 0x1c]
add eax, 0x2e
add eax, ecx
cmp eax, edi
ja 0x403504
mov esi, dword [esp + 0x20]
sub edi, eax
inc esi
mov dword [esp + 0x10], edi
add edx, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], edx
cmp esi, dword [ebx + 0x10]
jb 0x403232
mov ecx, ebx
call fcn.004028f0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2088]
xor ecx, esp
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret
push esi
call fcn.0041050f
add esp, 4
mov dword [ebx + 0x1c], 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2088]
xor ecx, esp
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x1c], 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2088]
xor ecx, esp
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret
push esi
call fcn.0041050f
add esp, 4
mov dword [ebx + 0x1c], 9
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2088]
xor ecx, esp
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x1c], 5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2088]
xor ecx, esp
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x1c], 0xa
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2088]
xor ecx, esp
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x1c], 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2088]
xor ecx, esp
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2094]
xor eax, eax
pop edi
pop esi
mov dword [ebx + 0x1c], 7
pop ebx
xor ecx, esp
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret