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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
xor esi, esi
mov dword [ebp - 0xc], esi
test dword [edi + 8], 0x80000
je 0x402ff6
mov eax, dword [edi + 0x1c]
sub eax, dword [edi + 0x40]
mov dword [ebp - 8], 1
cmp eax, dword [edi + 0x24]
jbe 0x402ff9
mov dword [ebp - 8], esi
cmp dword [edi], esi
jne 0x403018
mov eax, dword [edi + 0x7c]
mov ecx, dword [edi + 0x8c]
mov eax, dword [eax]
sub eax, ecx
cmp eax, 0x14ccc
jb 0x403018
mov eax, dword [edi + 0x74]
add eax, ecx
jmp 0x40301e
lea eax, [edi + 0x39272]
mov cl, byte [edi + 0x38]
lea ebx, [edi + 0x30]
mov dword [ebx], eax
lea edx, [edi + 0x34]
mov dword [ebp - 0x1c], eax
add eax, 0x14cbc
mov dword [edx], eax
mov eax, dword [edi + 0x2c]
mov dword [edi + 0x58], esi
mov dword [edi + 0x5c], esi
mov esi, ebx
shr byte [eax], cl
xor eax, eax
cmp dword [edi + 0x38], 8
sete al
sub dword [edi + 0x28], eax
test dword [edi + 8], 0x1000
je 0x4030c3
cmp dword [edi + 0x64], 0
jne 0x4030c3
mov ecx, dword [edi + 0x44]
push 0x78
pop edx
shl edx, cl
or edx, dword [edi + 0x48]
lea eax, [ecx + 8]
push 8
pop esi
jmp 0x403088
mov ecx, dword [ebx]
cmp ecx, dword [edi + 0x34]
jae 0x40307c
mov al, byte [edi + 0x48]
mov byte [ecx], al
inc dword [ebx]
mov edx, dword [edi + 0x48]
mov eax, dword [edi + 0x44]
shr edx, 8
add eax, 0xfffffff8
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], edx
cmp eax, esi
jae 0x40306e
bts edx, eax
add eax, 8
mov dword [edi + 0x48], edx
mov dword [edi + 0x44], eax
cmp eax, esi
jb 0x4030bd
mov ecx, dword [ebx]
cmp ecx, dword [edi + 0x34]
jae 0x4030b0
mov al, byte [edi + 0x48]
mov byte [ecx], al
inc dword [ebx]
shr dword [edi + 0x48], 8
add dword [edi + 0x44], 0xfffffff8
cmp dword [edi + 0x44], esi
jae 0x4030a2
lea edx, [edi + 0x34]
lea esi, [edi + 0x30]
mov ecx, dword [edi + 0x44]
xor ebx, ebx
cmp dword [ebp - 0x14], 4
sete bl
shl ebx, cl
lea eax, [ecx + 1]
or ebx, dword [edi + 0x48]
mov dword [edi + 0x48], ebx
mov dword [ebp - 4], eax
mov dword [edi + 0x44], eax
cmp eax, 8
jb 0x40310f
mov ecx, dword [esi]
cmp ecx, dword [edx]
jae 0x4030f2
mov al, byte [edi + 0x48]
mov byte [ecx], al
inc dword [esi]
mov eax, dword [edi + 0x44]
mov ebx, dword [edi + 0x48]
add eax, 0xfffffff8
shr ebx, 8
mov dword [edi + 0x48], ebx
mov dword [ebp - 4], eax
mov dword [edi + 0x44], eax
cmp eax, 8
jae 0x4030e5
lea esi, [edi + 0x30]
cmp dword [ebp - 8], 0
mov edx, dword [esi]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], 2
jne 0x403172
test dword [edi + 8], 0x40000
lea eax, [edi + 0x3c]
jne 0x40313e
cmp dword [eax], 0x30
mov dword [ebp - 8], eax
jb 0x40313e
mov ecx, edi
call fcn.0040268d
jmp 0x403148
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.00402cc4
mov ecx, edi
call fcn.00402d75
mov edx, dword [ebp - 8]
mov ecx, dword [esi]
mov dword [ebp - 0xc], eax
mov esi, dword [edx]
test esi, esi
je 0x40329e
mov edx, dword [ebp - 0x10]
sub ecx, edx
inc ecx
cmp ecx, esi
jb 0x40329e
lea esi, [edi + 0x30]
mov eax, dword [edi + 0x1c]
sub eax, dword [edi + 0x40]
cmp eax, dword [edi + 0x24]
ja 0x40329b
mov eax, dword [ebp - 4]
mov dword [esi], edx
mov dword [edi + 0x48], ebx
lea ecx, [eax + 2]
mov dword [edi + 0x44], ecx
cmp ecx, 8
jb 0x4031cb
mov eax, edx
mov dword [ebp - 8], eax
mov edx, eax
cmp eax, dword [edi + 0x34]
jae 0x4031ac
mov ecx, dword [ebp - 8]
mov al, byte [edi + 0x48]
mov byte [ecx], al
inc dword [esi]
mov edx, dword [esi]
mov ecx, dword [edi + 0x44]
mov eax, edx
mov ebx, dword [edi + 0x48]
add ecx, 0xfffffff8
shr ebx, 8
mov dword [edi + 0x48], ebx
mov dword [edi + 0x44], ecx
mov dword [ebp - 8], edx
cmp ecx, 8
jae 0x403199
lea esi, [edi + 0x30]
test ecx, ecx
je 0x403201
mov dword [edi + 0x48], ebx
mov dword [edi + 0x44], 8
cmp edx, dword [edi + 0x34]
jae 0x4031e7
mov al, byte [edi + 0x48]
mov byte [edx], al
inc dword [esi]
mov edx, dword [esi]
mov ecx, dword [edi + 0x44]
mov ebx, dword [edi + 0x48]
add ecx, 0xfffffff8
shr ebx, 8
mov dword [edi + 0x48], ebx
mov dword [edi + 0x44], ecx
cmp ecx, 8
jae 0x4031d9
lea esi, [edi + 0x30]
push 2
pop edx
movzx eax, word [edi + 0x3c]
shl eax, cl
or eax, ebx
add ecx, 0x10
mov dword [edi + 0x48], eax
mov ebx, eax
jmp 0x403233
mov ecx, dword [esi]
cmp ecx, dword [edi + 0x34]
jae 0x403224
mov al, byte [edi + 0x48]
mov byte [ecx], al
inc dword [esi]
mov ebx, dword [edi + 0x48]
mov ecx, dword [edi + 0x44]
shr ebx, 8
add ecx, 0xfffffff8
mov dword [edi + 0x48], ebx
mov dword [edi + 0x44], ecx
cmp ecx, 8
jae 0x403216
xor dword [edi + 0x3c], 0xffff
sub edx, 1
jne 0x403204
cmp dword [edi + 0x3c], edx
jbe 0x4032bf
mov eax, dword [edi + 0x40]
add eax, edx
and eax, 0x7fff
movzx eax, byte [eax + edi + 0x90]
shl eax, cl
or eax, ebx
add ecx, 8
mov dword [edi + 0x48], eax
mov ebx, eax
jmp 0x40328b
mov ecx, dword [edi + 0x30]
cmp ecx, dword [edi + 0x34]
jae 0x40327c
mov al, byte [edi + 0x48]
mov byte [ecx], al
inc dword [edi + 0x30]
mov ebx, dword [edi + 0x48]
mov ecx, dword [edi + 0x44]
shr ebx, 8
add ecx, 0xfffffff8
mov dword [edi + 0x48], ebx
mov dword [edi + 0x44], ecx
cmp ecx, 8
jae 0x40326c
inc edx
cmp edx, dword [edi + 0x3c]
jb 0x40324c
jmp 0x4032bf
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4032bf
mov eax, dword [ebp - 0x10]
mov ecx, edi
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x48], ebx
mov dword [edi + 0x44], eax
call fcn.00402cc4
mov ecx, edi
call fcn.00402d75
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403408
mov ecx, dword [edi + 0x44]
push 4
pop esi
cmp eax, esi
jne 0x403359
test ecx, ecx
je 0x40330b
mov eax, dword [edi + 0x48]
mov dword [edi + 0x48], eax
mov dword [edi + 0x44], 8
mov ecx, dword [edi + 0x30]
cmp ecx, dword [edi + 0x34]
jae 0x4032f9
mov al, byte [edi + 0x48]
mov byte [ecx], al
inc dword [edi + 0x30]
mov ecx, dword [edi + 0x44]
shr dword [edi + 0x48], 8
add ecx, 0xfffffff8
mov dword [edi + 0x44], ecx
cmp ecx, 8
jae 0x4032e9
test dword [edi + 8], 0x1000
je 0x403408
mov edx, dword [edi + 0x18]
mov eax, edx
shr eax, 0x18
shl eax, cl
or dword [edi + 0x48], eax
add ecx, 8
jmp 0x403344
mov ecx, dword [edi + 0x30]
cmp ecx, dword [edi + 0x34]
jae 0x40333a
mov al, byte [edi + 0x48]
mov byte [ecx], al
inc dword [edi + 0x30]
mov ecx, dword [edi + 0x44]
shr dword [edi + 0x48], 8
add ecx, 0xfffffff8
mov dword [edi + 0x44], ecx
cmp ecx, 8
jae 0x40332a
shl edx, 8
sub esi, 1
jne 0x40331b
jmp 0x403408
mov edx, dword [edi + 0x48]
xor esi, esi
add ecx, 3
jmp 0x40337f
mov ecx, dword [edi + 0x30]
cmp ecx, dword [edi + 0x34]
jae 0x403373
mov al, byte [edi + 0x48]
mov byte [ecx], al
inc dword [edi + 0x30]
mov edx, dword [edi + 0x48]
mov ecx, dword [edi + 0x44]
shr edx, 8
add ecx, 0xfffffff8
mov dword [edi + 0x44], ecx
mov dword [edi + 0x48], edx
cmp ecx, 8
jae 0x403363
test ecx, ecx
je 0x4033bf
mov dword [edi + 0x48], edx
mov dword [edi + 0x44], 8
mov ecx, dword [edi + 0x30]
cmp ecx, dword [edi + 0x34]
jae 0x4033a8
mov al, byte [edi + 0x48]
mov byte [ecx], al
inc dword [edi + 0x30]
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x48]
add ecx, 0xfffffff8
shr edx, 8
mov dword [edi + 0x48], edx
mov dword [edi + 0x44], ecx
cmp ecx, 8
jae 0x403398
movzx eax, si
shl eax, cl
or eax, edx
add ecx, 0x10
mov dword [edi + 0x48], eax
mov edx, eax
jmp 0x4033ef
mov ecx, dword [edi + 0x30]
cmp ecx, dword [edi + 0x34]
jae 0x4033e0
mov al, byte [edi + 0x48]
mov byte [ecx], al
inc dword [edi + 0x30]
mov edx, dword [edi + 0x48]
mov ecx, dword [edi + 0x44]
shr edx, 8
add ecx, 0xfffffff8
mov dword [edi + 0x48], edx
mov dword [edi + 0x44], ecx
cmp ecx, 8
jae 0x4033d0
mov eax, dword [ebp - 0x18]
xor esi, 0xffff
dec eax
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4033bf
push 0x240
xor esi, esi
lea eax, [edi + 0x8192]
push esi
push eax
call fcn.00421360
push 0x40
lea eax, [edi + 0x83d2]
push esi
push eax
call fcn.00421360
lea eax, [edi + 0x9273]
mov dword [edi + 0x38], 8
mov dword [edi + 0x28], eax
add esp, 0x18
lea eax, [edi + 0x9272]
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x3c]
add dword [edi + 0x40], eax
inc dword [edi + 0x64]
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x3c], esi
mov esi, dword [edi + 0x30]
sub esi, eax
je 0x4034da
cmp dword [edi], 0
je 0x403496
mov eax, dword [edi + 0x78]
mov ecx, dword [edi + 0x84]
sub ecx, dword [edi + 0x70]
mov dword [eax], ecx
lea eax, [edi + 0x39272]
push dword [edi + 4]
push esi
mov esi, dword [edi]
mov ecx, esi
push eax
call dword [0x448184]
call esi
add esp, 0xc
test eax, eax
jne 0x4034da
or eax, 0xffffffff
mov dword [edi + 0x6c], eax
jmp 0x4034dd
lea edx, [edi + 0x39272]
cmp eax, edx
jne 0x4034d4
mov eax, dword [edi + 0x7c]
mov ecx, dword [edi + 0x8c]
mov ebx, dword [eax]
mov eax, dword [edi + 0x74]
sub ebx, ecx
cmp esi, ebx
cmovb ebx, esi
add eax, ecx
push ebx
push edx
push eax
call fcn.00421500
add dword [edi + 0x8c], ebx
add esp, 0xc
sub esi, ebx
je 0x4034da
mov dword [edi + 0x58], ebx
mov dword [edi + 0x5c], esi
jmp 0x4034da
add dword [edi + 0x8c], esi
mov eax, dword [edi + 0x5c]
pop edi
pop esi
pop ebx
leave
ret