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

Disassembly:
sub esp, 0x48
mov eax, dword [0x4a4100]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
mov ebp, dword [esp + 0x58]
push esi
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 4]
push edi
mov edi, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ebp
test eax, eax
jle 0x42041b
add ecx, 8
lea ecx, [ecx]
mov byte [ecx], 0
add ecx, 0xc
sub eax, 1
jne 0x420410
mov eax, 0x55555556
imul dword [esp + 0x64]
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x68], ebx
test ebx, ebx
jg 0x420442
mov ebx, 1
mov dword [esp + 0x68], ebx
mov dword [edi + 0x70], 0xffffffff
mov ecx, dword [ebp + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
test ecx, ecx
jg 0x42046d
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov edx, dword [ebp]
mov eax, 0xa
cmp ax, word [edx + 0xa]
jne 0x420486
mov edi, 1
mov dword [esp + 0x10], edi
jmp 0x4204f6
mov esi, ecx
test esi, esi
jg 0x42049d
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [edx]
cmp eax, ebx
mov edi, 1
jge 0x4204f6
cmp ecx, edi
jle 0x4204f6
add edx, 0xc
test edi, edi
jl 0x42045c
cmp edi, esi
jge 0x42045c
mov ecx, dword [edx + 4]
mov ebx, dword [edx]
mov dword [esp + 0x40], ecx
mov ecx, dword [edx + 8]
shr ecx, 0x10
mov ebp, 0xa
cmp bp, cx
je 0x4205c0
mov ecx, dword [esp + 0x68]
add eax, ebx
cmp eax, ecx
jg 0x4205ce
inc edi
add edx, 0xc
cmp eax, ecx
je 0x4205ce
cmp edi, esi
jl 0x4204af
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x18]
lea ebx, [esp + 0x3c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], eax
call fcn.004211e0
cmp edi, dword [esp + 0x14]
jge 0x420667
mov edx, dword [esp + 0x14]
jmp 0x420530
mov dword [esp + 0x10], 0
test edi, edi
jl 0x42045c
cmp edi, dword [ebp + 4]
jge 0x42045c
mov ecx, dword [ebp]
lea eax, [edi + edi*2]
lea eax, [ecx + eax*4]
mov esi, 0xa
inc edi
cmp si, word [eax + 0xa]
je 0x4205e9
mov eax, dword [eax]
cmp eax, dword [esp + 0x68]
jge 0x4205f1
cmp edi, edx
jge 0x4205f1
lea edx, [edi + edi*2]
lea edx, [ecx + edx*4]
test edi, edi
jl 0x42045c
cmp edi, dword [ebp + 4]
jge 0x42045c
mov ecx, dword [edx + 4]
mov ebx, dword [edx]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edx + 8]
shr ecx, 0x10
mov esi, 0xa
cmp si, cx
je 0x4205e8
mov ecx, dword [esp + 0x68]
add eax, ebx
cmp eax, ecx
jg 0x420630
inc edi
add edx, 0xc
cmp eax, ecx
je 0x420630
cmp edi, dword [esp + 0x14]
jl 0x420578
jmp 0x4205f1
inc edi
mov dword [esp + 0x10], 1
jmp 0x4204f2
mov ebp, dword [esp + 0x1c]
push ebp
lea ecx, [esp + 0x14]
xor edx, edx
call fcn.00420270
add esp, 4
mov edi, eax
jmp 0x4204f6
inc edi
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x64]
mov esi, dword [esp + 0x18]
lea ebx, [esp + 0x3c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], eax
call fcn.004211e0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x64]
add edx, eax
cmp edx, dword [esp + 0x6c]
jg 0x420667
mov edx, dword [esp + 0x14]
cmp edi, edx
jl 0x420530
jmp 0x42066b
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 4]
lea eax, [ecx - 1]
test eax, eax
jl 0x42045c
cmp eax, ecx
jge 0x42045c
mov ecx, dword [edx]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*4 + 8]
lea eax, [ecx + eax*4]
push ebp
lea ecx, [esp + 0x14]
call fcn.00420270
add esp, 4
mov edi, eax
jmp 0x4205f1
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x10], 0
je 0x4206a4
cmp edi, edx
jne 0x4206a4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x64]
lea eax, [ecx + edx]
cmp eax, dword [esp + 0x6c]
jg 0x4206a4
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea ebx, [esp + 0x3c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
call fcn.004211e0
mov ebx, dword [esp + 0x24]
xor esi, esi
or edx, 0xffffffff
xor ebp, ebp
cmp dword [ebx + 0x6c], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x10], esi
jge 0x420860
cmp dword [ebx + 0x84], esi
je 0x4207b3
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
xor eax, eax
test ecx, ecx
jle 0x42079a
mov dword [esp + 0x14], eax
lea esp, [esp]
cmp dword [esp + 0x14], 0
jl 0x42045c
cmp esi, ecx
jge 0x42045c
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
mov edx, dword [esp + 0x14]
mov ebp, dword [ecx + edx + 8]
lea ebx, [ecx + edx]
xor edi, edi
cmp eax, ebp
jge 0x42076d
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x6c]
lea ecx, [eax + eax*2]
add ecx, ecx
mov dword [esp + 0x2c], edx
add ecx, ecx
cmp dword [esp + 0x2c], eax
jne 0x420745
mov edx, dword [ebx + 4]
sub edx, dword [esp + 0x64]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x28], esi
test ecx, ecx
jl 0x42045c
mov edx, dword [esp + 0x1c]
cmp eax, dword [edx + 4]
jge 0x42045c
mov edx, dword [edx]
mov edx, dword [ecx + edx]
test edx, edx
jle 0x420765
add edi, edx
inc eax
add ecx, 0xc
cmp eax, ebp
jl 0x42072c
cmp dword [esp + 0x10], edi
mov dword [ebx], edi
jge 0x420779
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
add dword [esp + 0x14], 0xc
inc esi
cmp esi, ecx
jl 0x4206f0
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov dword [ebx + 0x70], edx
cmp edx, 0xffffffff
jne 0x42095b
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x78], eax
jmp 0x420965
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
xor edi, edi
test eax, eax
jle 0x42079a
mov dword [esp + 0x14], edi
cmp dword [esp + 0x14], 0
jl 0x42045c
cmp esi, eax
jge 0x42045c
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [esp + 0x14]
lea ebx, [eax + edx]
lea eax, [edi + edi*2]
add eax, eax
xor edx, edx
add eax, eax
lea ecx, [ecx]
cmp dword [esp + 0x28], 0xffffffff
jne 0x42080f
mov ecx, dword [esp + 0x24]
cmp dword [ecx + 0x6c], edi
jne 0x42080f
mov ebp, dword [ebx + 4]
sub ebp, dword [esp + 0x64]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x28], esi
cmp edi, dword [ebx + 8]
jge 0x42083a
test eax, eax
jl 0x42045c
mov ecx, dword [esp + 0x1c]
cmp edi, dword [ecx + 4]
jge 0x42045c
mov ecx, dword [ecx]
mov ecx, dword [eax + ecx]
test ecx, ecx
jle 0x420834
add edx, ecx
inc edi
add eax, 0xc
jmp 0x4207f0
cmp dword [esp + 0x10], edx
mov dword [ebx], edx
jge 0x420846
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
add dword [esp + 0x14], 0xc
inc esi
cmp esi, eax
jl 0x4207c4
jmp 0x420792
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
xor ecx, ecx
test eax, eax
jle 0x420915
mov dword [esp + 0x30], ecx
lea esp, [esp]
cmp dword [esp + 0x30], 0
jl 0x42045c
cmp dword [esp + 0x2c], eax
jge 0x42045c
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + edx + 8]
lea ebp, [eax + edx]
xor esi, esi
cmp ecx, ebx
jge 0x4208db
lea eax, [ecx + ecx*2]
add eax, eax
add eax, eax
test eax, eax
jl 0x42045c
mov edx, dword [esp + 0x1c]
cmp ecx, dword [edx + 4]
jge 0x42045c
mov edx, dword [edx]
mov edx, dword [eax + edx]
test edx, edx
jle 0x4208d3
add esi, edx
inc ecx
add eax, 0xc
cmp ecx, ebx
jl 0x4208b3
cmp dword [esp + 0x10], esi
mov dword [ebp], esi
jge 0x4208e8
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
add dword [esp + 0x30], 0xc
inc edx
cmp edx, eax
mov dword [esp + 0x2c], edx
jl 0x420880
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp dword [ebx + 0x6c], eax
jne 0x42079a
cmp eax, edi
jne 0x42079a
mov eax, dword [esi + 4]
lea edx, [eax - 1]
test edx, edx
jl 0x42045c
cmp edx, eax
jge 0x42045c
mov eax, dword [esi]
lea ecx, [edx + edx*2]
mov ebp, dword [eax + ecx*4 + 4]
sub ebp, dword [esp + 0x64]
lea eax, [eax + ecx*4]
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
jmp 0x42079a
mov edx, dword [esp + 0x3c]
mov dword [ebx + 0x74], edx
mov dword [ebx + 0x78], ebp
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], edx
test ecx, ecx
jg 0x420980
mov dword [eax], 1
test edx, edx
jg 0x42098b
mov dword [eax + 4], 1
mov ecx, dword [esp + 0x34]
add dword [eax], ecx
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046f01c
add esp, 0x48
ret 0x14