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

Disassembly:
sub esp, 0x66c
push ebx
xor ebx, ebx
push ebp
push esi
mov esi, dword [esp + 0x67c]
push edi
mov edi, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], ebx
test esi, esi
je 0x420692
jle 0x4206d3
cmp esi, 2
jle 0x420664
cmp esi, 3
jne 0x4206d3
mov eax, dword [esp + 0x684]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.004325e7
jmp 0x4206d3
mov eax, dword [edi + 4]
cmp esi, 2
mov edx, dword [eax + 0x19c]
lea eax, [esp + 0x1c]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
push eax
push ecx
mov dword [esp + 0x68], edx
sete byte [esp + 0x70]
mov dword [esp + 0x74], ebx
call fcn.0041d3e1
jmp 0x4206d3
lea ecx, [esp + 0x88]
call fcn.0040a9b5
push 0x14
lea edi, [esp + 0xcf]
pop ebp
push edi
lea ecx, [esp + 0x20]
call fcn.00432733
add edi, 0x2d
dec ebp
jne 0x4206a8
push 0x5f0
lea eax, [esp + 0x8c]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_memset]
mov edi, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [edi + 4]
push 1
lea eax, [esp + 0x20]
push eax
call fcn.00416a71
cmp dword [esp + 0x20], ebx
jne 0x4206f1
mov byte [esp + 0x16], bl
jmp 0x420a18
mov ebp, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], ebp
call fcn.00432b40
mov dword [esp + 0x4c], eax
cmp esi, 3
jne 0x420719
push ecx
push ebx
push 0x14
pop edx
lea ecx, [esp + 0x7c]
call fcn.004279c9
jmp 0x42072a
push 0x14
push eax
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
mov esi, dword [esp + 0x2c]
push 4
cmp esi, 1
pop ecx
cmovl ecx, dword [esp + 0x20]
cmp dword [esp + 0x20], 0
mov byte [esp + 0x16], bl
mov dword [esp + 0x34], ecx
mov dword [esp + 0x50], ebx
jle 0x4209a4
mov eax, ebp
imul eax, eax, 0x14
mov dword [esp + 0x58], eax
mov esi, ebx
mov dword [esp + 0x54], ebx
test ecx, ecx
jle 0x4209a0
mov ecx, dword [edi + 4]
call fcn.00416bc8
test al, al
je 0x4209a0
mov edi, dword [esp + 0x1c]
add edi, esi
mov dword [esp + 0x38], edi
mov esi, ebx
test ebp, ebp
je 0x4207bb
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
lea eax, [edi + 8]
mov dword [esp + 0x40], eax
mov edi, eax
push 0x14
push ebp
push edi
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
je 0x4207b1
inc esi
add ebp, 0x14
cmp esi, ebx
jb 0x420798
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x18]
xor ebx, ebx
cmp esi, ebp
jne 0x420975
cmp ebp, 0x96
jae 0x42099c
mov esi, dword [esp + 0x58]
lea ecx, [esp + 0x30]
lea edx, [esi + 0x14]
call fcn.00430d6d
test al, al
je 0x420805
push 0x14
lea eax, [edi + 8]
push eax
mov eax, dword [esp + 0x38]
add eax, esi
push eax
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
inc ebp
add esi, 0x14
mov dword [esp + 0x18], ebp
mov dword [esp + 0x58], esi
lea esi, [edi + 8]
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x60], esi
call fcn.004329cc
test eax, eax
jns 0x420975
mov ecx, esi
call fcn.00432b84
test al, al
jne 0x420975
push edi
lea ecx, [esp + 0x2c]
call fcn.0043255e
test al, al
jne 0x420975
or ebp, 0xffffffff
cmp dword [esp + 0x2c], 0x32
jl 0x420861
push dword [esp + 0x4c]
lea ecx, [esp + 0x2c]
push esi
call fcn.0043292b
mov ebp, eax
test ebp, ebp
js 0x420971
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x180]
call fcn.00427945
xor edx, edx
mov ecx, 0xfa0
div ecx
lea eax, [esp + 0x44]
add edx, 0x1388
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.00429782
cmp eax, 1
jl 0x420971
dec dword [esp + 0x34]
call fcn.004333ac
xor ecx, ecx
test al, al
mov eax, dword [esp + 0x24]
setne cl
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x190]
mov dword [esp + 0x38], eax
lea esi, [eax + 0x28]
push esi
mov dword [esp + 0x44], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x38]
cmp dword [eax + 8], ebx
jbe 0x4208dc
mov byte [esp + 0x17], 1
cmp dword [eax + 0x18], ebx
ja 0x4208e0
mov byte [esp + 0x17], bl
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x17], 0
mov ecx, dword [esp + 0x40]
sete al
mov byte [esp + 0x70], al
test ecx, ecx
jne 0x4208ff
test al, al
je 0x42091c
mov eax, dword [esp + 0x24]
push 0x1388
push ecx
push dword [esp + 0x78]
mov ecx, dword [eax + 4]
push edi
mov ecx, dword [ecx + 0x180]
call fcn.004296d3
test ebp, ebp
jns 0x42092e
push 1
push edi
lea ecx, [esp + 0x30]
call fcn.004326d8
jmp 0x42093a
push ecx
push edi
push ebp
lea ecx, [esp + 0x34]
call fcn.004327d3
test al, al
je 0x420971
mov esi, dword [esp + 0x684]
mov byte [esp + 0x16], 1
test esi, esi
je 0x42095d
push dword [esp + 0x5c]
mov ecx, esi
call fcn.004329cc
test eax, eax
jns 0x420971
lea ecx, [esp + 0x28]
call fcn.0043247c
inc dword [esp + 0x3c]
mov dword [esp + 0x684], ebx
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x24]
inc edx
add esi, 0x38
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], esi
cmp edx, dword [esp + 0x20]
jge 0x4209a0
mov ecx, dword [esp + 0x34]
jmp 0x42075f
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
call fcn.00430e28
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
xor ecx, ecx
mov dword [esp + 0x20], eax
call fcn.00430e28
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
push eax
push 0x4325c3
push 0x38
push dword [esp + 0x2c]
mov dword [esp + 0x54], ebx
push dword [esp + 0x2c]
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x78], 1
call fcn.0043cf60
add esp, 0x14
cmp byte [esp + 0x16], 1
je 0x42072e
mov ecx, dword [esp + 0x30]
call fcn.00430e28
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x28]
test eax, eax
setg byte [esp + 0x16]
xor ecx, ecx
call fcn.00430e28
mov ecx, dword [esp + 0x1c]
call fcn.00430e28
mov ecx, ebx
call fcn.00430e28
mov al, byte [esp + 0x16]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x66c
ret 8