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

Disassembly:
push 0xffffffffffffffff
push 0x475fdc
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4995d0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
xor ebx, ebx
mov ebp, 0xf
mov esi, ecx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
mov dword [esp + 0x98], ebx
mov eax, dword [esp + 0x1c]
and eax, 0xfffffe07
or eax, 7
push 0x20
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
call fcn.00434456
mov edi, eax
add esp, 4
mov dword [esp + 0x60], edi
mov byte [esp + 0x98], 1
cmp edi, ebx
je 0x4202af
push edi
call fcn.00424640
jmp 0x4202b1
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, esi
mov byte [esp + 0x98], 2
call fcn.00421800
mov edi, dword [eax]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x38]
call fcn.00423680
lea ecx, [esp + 0x34]
mov edx, edi
call fcn.004238f0
call fcn.004237d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 0
call fcn.004237d0
lea edi, [esp + 0x54]
mov eax, esi
call fcn.0041fcd0
test al, al
je 0x420638
mov ecx, dword [esp + 0x54]
mov al, 1
cmp ecx, 0xc
jne 0x420337
test al, al
je 0x420638
lea edi, [esp + 0x54]
mov eax, esi
call fcn.0041fcd0
mov ecx, dword [esp + 0x54]
cmp ecx, 0xc
je 0x420313
test al, al
je 0x420638
cmp ecx, 2
je 0x4204f4
cmp ecx, 5
jne 0x420638
push ebx
push 0x48243e
lea ecx, [esp + 0x78]
call fcn.00409360
lea edx, [esp + 0x54]
push edx
push esi
lea ecx, [esp + 0x78]
call fcn.00420f90
test al, al
je 0x42051f
lea edi, [esp + 0x14]
mov eax, esi
call fcn.0041fcd0
test al, al
je 0x4205cd
cmp dword [esp + 0x14], 0xb
jne 0x4205cd
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
add edi, eax
cmp eax, edi
jbe 0x42039e
call fcn.004564a4
mov ebx, dword [esi]
mov dword [esp + 0x6c], edi
test ebx, ebx
jne 0x4203c4
call fcn.004564a4
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
dec edi
cmp edi, ecx
ja 0x4203d1
test ebx, ebx
je 0x4203ca
mov eax, dword [ebx]
jmp 0x4203cc
mov eax, dword [ebx]
mov ecx, eax
jmp 0x4203b1
xor eax, eax
cmp edi, dword [eax + 0x18]
jae 0x4203d6
call fcn.004564a4
lea eax, [esp + 0x60]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], edi
call fcn.00422b50
cmp dword [esp + 0x88], 0x10
mov eax, dword [eax]
mov ecx, dword [esp + 0x74]
jae 0x4203fb
lea ecx, [esp + 0x74]
push ecx
mov ebx, eax
call fcn.00423bd0
mov edx, dword [esi + 0x18]
mov ebp, eax
mov eax, dword [esi + 0x1c]
add edx, eax
test dl, 3
jne 0x420424
add eax, 4
shr eax, 2
cmp dword [esi + 0x14], eax
ja 0x420424
mov ebx, esi
call fcn.00421b30
mov ebx, dword [esi + 0x1c]
add ebx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
mov edi, ebx
shr edi, 2
cmp eax, edi
ja 0x420438
sub edi, eax
mov eax, dword [esi + 0x10]
cmp dword [eax + edi*4], 0
jne 0x420451
push 0x10
call fcn.00434456
mov ecx, dword [esi + 0x10]
add esp, 4
mov dword [ecx + edi*4], eax
mov edx, dword [esi + 0x10]
mov eax, dword [edx + edi*4]
and ebx, 3
lea ebx, [eax + ebx*4]
test ebx, ebx
je 0x420463
mov dword [ebx], ebp
inc dword [esi + 0x1c]
mov ecx, esi
call fcn.0041fa90
mov ecx, dword [esi + 0x1c]
xor ebp, ebp
cmp ecx, ebp
je 0x420481
dec ecx
mov dword [esi + 0x1c], ecx
cmp ecx, ebp
jne 0x420481
mov dword [esi + 0x18], ebp
test al, al
je 0x420541
lea edi, [esp + 0x34]
mov eax, esi
call fcn.0041fcd0
test al, al
je 0x420563
mov ecx, dword [esp + 0x34]
cmp ecx, 2
je 0x4204b3
cmp ecx, 0xa
je 0x4204b3
cmp ecx, 0xc
jne 0x420563
mov al, 1
cmp ecx, 0xc
jne 0x4204d8
lea ebx, [ebx]
test al, al
je 0x4204d8
lea edi, [esp + 0x34]
mov eax, esi
call fcn.0041fcd0
mov ecx, dword [esp + 0x34]
cmp ecx, 0xc
je 0x4204c0
cmp ecx, 2
je 0x420501
lea edi, [esp + 0x54]
mov eax, esi
call fcn.0041fcd0
mov ebp, 0xf
xor ebx, ebx
jmp 0x420300
cmp dword [esp + 0x84], ebx
jne 0x420638
cmp dword [esp + 0x88], 0x10
jb 0x420518
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00434485
add esp, 4
mov al, 1
jmp 0x4206b9
push 2
push esi
call fcn.00421700
cmp dword [esp + 0x88], 0x10
mov bl, al
jb 0x4206b7
mov edx, dword [esp + 0x74]
push edx
jmp 0x4206af
push 2
push esi
call fcn.00421700
cmp dword [esp + 0x88], 0x10
mov bl, al
jb 0x4206b7
mov eax, dword [esp + 0x74]
push eax
jmp 0x4206af
push 0x28
mov edi, 0xf
push 0x483688
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebp
mov byte [esp + 0x20], 0
call fcn.00409360
push ebp
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x1c]
mov edx, esi
mov byte [esp + 0xa0], 4
call fcn.00421600
push 2
push esi
call fcn.00421700
mov esi, 0x10
mov bl, al
cmp dword [esp + 0x2c], esi
jb 0x4205c0
mov eax, dword [esp + 0x18]
push eax
call fcn.00434485
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebp
jmp 0x42069c
push 0x24
push 0x483660
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], 0
call fcn.00409360
push ebx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x3c]
mov edx, esi
mov byte [esp + 0xa0], 3
call fcn.00421600
push 2
push esi
call fcn.00421700
mov esi, 0x10
mov bl, al
cmp dword [esp + 0x4c], esi
jb 0x420625
mov eax, dword [esp + 0x38]
push eax
call fcn.00434485
add esp, 4
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
jmp 0x4206a1
push 0x21
push 0x4836b4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
call fcn.00409360
push ebx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x1c]
mov edx, esi
mov byte [esp + 0xa0], 5
call fcn.00421600
push 2
push esi
call fcn.00421700
mov esi, 0x10
mov bl, al
cmp dword [esp + 0x2c], esi
jb 0x420690
mov eax, dword [esp + 0x18]
push eax
call fcn.00434485
add esp, 4
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
cmp dword [esp + 0x88], esi
jb 0x4206b7
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00434485
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004541a5
add esp, 0x88
ret