Function at 0x4023c8
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 0x4023f6
mov eax, dword [edi + 0x1c]
sub eax, dword [edi + 0x40]
mov dword [ebp - 8], 1
cmp eax, dword [edi + 0x24]
jbe 0x4023f9
mov dword [ebp - 8], esi
cmp dword [edi], esi
jne 0x402418
mov eax, dword [edi + 0x7c]
mov ecx, dword [edi + 0x8c]
mov eax, dword [eax]
sub eax, ecx
cmp eax, 0x14ccc
jb 0x402418
mov eax, dword [edi + 0x74]
add eax, ecx
jmp 0x40241e
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 0x4024c3
cmp dword [edi + 0x64], 0
jne 0x4024c3
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 0x402488
mov ecx, dword [ebx]
cmp ecx, dword [edi + 0x34]
jae 0x40247c
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 0x40246e
bts edx, eax
add eax, 8
mov dword [edi + 0x48], edx
mov dword [edi + 0x44], eax
cmp eax, esi
jb 0x4024bd
mov ecx, dword [ebx]
cmp ecx, dword [edi + 0x34]
jae 0x4024b0
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 0x4024a2
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 0x40250f
mov ecx, dword [esi]
cmp ecx, dword [edx]
jae 0x4024f2
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 0x4024e5
lea esi, [edi + 0x30]
cmp dword [ebp - 8], 0
mov edx, dword [esi]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], 2
jne 0x402572
test dword [edi + 8], 0x40000
lea eax, [edi + 0x3c]
jne 0x40253e
cmp dword [eax], 0x30
mov dword [ebp - 8], eax
jb 0x40253e
mov ecx, edi
call fcn.00401a8d
jmp 0x402548
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.004020c4
mov ecx, edi
call fcn.00402175
mov edx, dword [ebp - 8]
mov ecx, dword [esi]
mov dword [ebp - 0xc], eax
mov esi, dword [edx]
test esi, esi
je 0x40269e
mov edx, dword [ebp - 0x10]
sub ecx, edx
inc ecx
cmp ecx, esi
jb 0x40269e
lea esi, [edi + 0x30]
mov eax, dword [edi + 0x1c]
sub eax, dword [edi + 0x40]
cmp eax, dword [edi + 0x24]
ja 0x40269b
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 0x4025cb
mov eax, edx
mov dword [ebp - 8], eax
mov edx, eax
cmp eax, dword [edi + 0x34]
jae 0x4025ac
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 0x402599
lea esi, [edi + 0x30]
test ecx, ecx
je 0x402601
mov dword [edi + 0x48], ebx
mov dword [edi + 0x44], 8
cmp edx, dword [edi + 0x34]
jae 0x4025e7
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 0x4025d9
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 0x402633
mov ecx, dword [esi]
cmp ecx, dword [edi + 0x34]
jae 0x402624
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 0x402616
xor dword [edi + 0x3c], 0xffff
sub edx, 1
jne 0x402604
cmp dword [edi + 0x3c], edx
jbe 0x4026bf
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 0x40268b
mov ecx, dword [edi + 0x30]
cmp ecx, dword [edi + 0x34]
jae 0x40267c
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 0x40266c
inc edx
cmp edx, dword [edi + 0x3c]
jb 0x40264c
jmp 0x4026bf
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4026bf
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.004020c4
mov ecx, edi
call fcn.00402175
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x402808
mov ecx, dword [edi + 0x44]
push 4
pop esi
cmp eax, esi
jne 0x402759
test ecx, ecx
je 0x40270b
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 0x4026f9
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 0x4026e9
test dword [edi + 8], 0x1000
je 0x402808
mov edx, dword [edi + 0x18]
mov eax, edx
shr eax, 0x18
shl eax, cl
or dword [edi + 0x48], eax
add ecx, 8
jmp 0x402744
mov ecx, dword [edi + 0x30]
cmp ecx, dword [edi + 0x34]
jae 0x40273a
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 0x40272a
shl edx, 8
sub esi, 1
jne 0x40271b
jmp 0x402808
mov edx, dword [edi + 0x48]
xor esi, esi
add ecx, 3
jmp 0x40277f
mov ecx, dword [edi + 0x30]
cmp ecx, dword [edi + 0x34]
jae 0x402773
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 0x402763
test ecx, ecx
je 0x4027bf
mov dword [edi + 0x48], edx
mov dword [edi + 0x44], 8
mov ecx, dword [edi + 0x30]
cmp ecx, dword [edi + 0x34]
jae 0x4027a8
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 0x402798
movzx eax, si
shl eax, cl
or eax, edx
add ecx, 0x10
mov dword [edi + 0x48], eax
mov edx, eax
jmp 0x4027ef
mov ecx, dword [edi + 0x30]
cmp ecx, dword [edi + 0x34]
jae 0x4027e0
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 0x4027d0
mov eax, dword [ebp - 0x18]
xor esi, 0xffff
dec eax
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4027bf
push 0x240
xor esi, esi
lea eax, [edi + 0x8192]
push esi
push eax
call fcn.00420760
push 0x40
lea eax, [edi + 0x83d2]
push esi
push eax
call fcn.00420760
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 0x4028da
cmp dword [edi], 0
je 0x402896
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 0x4028da
or eax, 0xffffffff
mov dword [edi + 0x6c], eax
jmp 0x4028dd
lea edx, [edi + 0x39272]
cmp eax, edx
jne 0x4028d4
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.00420900
add dword [edi + 0x8c], ebx
add esp, 0xc
sub esi, ebx
je 0x4028da
mov dword [edi + 0x58], ebx
mov dword [edi + 0x5c], esi
jmp 0x4028da
add dword [edi + 0x8c], esi
mov eax, dword [edi + 0x5c]
pop edi
pop esi
pop ebx
leave
ret