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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b92bd
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4fc504]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x4fc504]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x34], esi
cmp dword [esi + 0xe2c], 2
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x30], eax
jne 0x420115
mov byte [esi + 0xe30], 0
push dword [ebp + 8]
call fcn.0042044a
mov bh, al
mov ecx, esi
lea eax, [esp + 0x48]
push eax
call fcn.00417f94
push eax
lea ecx, [ebp + 8]
call fcn.00406d04
test al, al
jne 0x420151
lea eax, [esp + 0x50]
mov ecx, esi
push eax
call fcn.00417fb7
push eax
lea ecx, [ebp + 8]
call fcn.00406d04
test al, al
je 0x420153
mov al, 1
cmp dword [esi + 0xe2c], 2
mov bl, byte [ebp + 0x18]
jne 0x42017d
test bh, bh
je 0x42017d
test al, al
je 0x42016b
test bl, bl
je 0x42017d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00418603
jmp 0x420427
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00417f94
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00417fb7
mov eax, dword [esi + 0x2a0]
mov ecx, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], eax
mov byte [esp + 0x4c], 1
call fcn.004b65d5
and dword [esp + 0x98], 0
cmp dword [esi + 0xe2c], 2
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], eax
jne 0x420318
test bl, bl
je 0x420318
cmp byte [ebp + 0x1c], 0
jne 0x420230
cmp dword [esi + 0x268], 3
je 0x420230
lea eax, [esp + 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.004871c7
test al, al
je 0x42030b
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], eax
call fcn.0048722a
neg eax
add edi, eax
jmp 0x42030b
mov eax, dword [esi + 0x23c]
xor ebx, ebx
sub eax, dword [esi + 0x238]
sar eax, 4
test eax, eax
je 0x42030b
mov ecx, dword [esi + 0x238]
mov edi, dword [esi + 0x23c]
mov esi, dword [esp + 0x24]
sub edi, ecx
sar edi, 4
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
add eax, ecx
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call fcn.00416a72
push eax
lea ecx, [ebp + 8]
call fcn.00487208
test al, al
je 0x4202e3
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x68]
mov ecx, dword [esp + 0x1c]
push eax
lea ecx, [ecx + edx]
call fcn.00416a9d
push eax
lea ecx, [ebp + 8]
call fcn.004871c7
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
lea ecx, [ecx + edx]
test al, al
jne 0x4202da
lea eax, [esp + 0x38]
push eax
call fcn.00416a72
mov ecx, dword [ebp + 8]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x64], eax
call fcn.0048722a
neg eax
add esi, eax
mov eax, dword [esp + 0x1c]
inc ebx
mov ecx, dword [esp + 0x14]
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp ebx, edi
jb 0x420268
mov dword [esp + 0x24], esi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
push 0
mov ecx, esi
call fcn.0041b3ef
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x70]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x2a0]
mov dword [ebp + 8], edi
push dword [eax + 0x1d8]
push dword [ebp + 0x14]
call fcn.0041448f
pop ecx
pop ecx
cmp byte [ebp + 0x1c], 0
mov byte [esp + 0x98], 1
je 0x420383
cmp dword [esp + 0x84], 0x10
mov eax, dword [esp + 0x70]
jae 0x42035c
lea eax, [esp + 0x70]
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
push dword [esp + 0x88]
push eax
call fcn.0041b78f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00418603
jmp 0x420409
mov ecx, dword [esi + 0x260]
mov eax, dword [esi + 0x238]
shl ecx, 4
push ecx
mov eax, dword [ecx + eax]
mov ecx, esi
sub eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x44]
push dword [ebp + 8]
push eax
call fcn.004187f5
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
mov eax, dword [eax + 4]
push eax
push ecx
mov ecx, esi
mov dword [ebp + 0xc], eax
call fcn.0041ab52
and dword [ebp + 0xc], 0
cmp dword [esp + 0x84], 0x10
mov ecx, dword [esp + 0x70]
mov dword [ebp + 8], eax
jae 0x4203d9
lea ecx, [esp + 0x70]
push dword [esp + 0x80]
push ecx
mov ecx, dword [esi + 0x2a0]
push eax
call fcn.00413958
test eax, eax
jle 0x420409
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add eax, ecx
push ecx
push dword [ebp + 0xc]
mov dword [esp + 0x74], ecx
mov ecx, esi
push eax
call fcn.004182d1
push 0
push 1
lea ecx, [esp + 0x78]
call fcn.0040177c
or dword [esp + 0x98], 0xffffffff
mov ecx, dword [esp + 0x50]
call fcn.00411dbb
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004906a0
mov esp, ebp
pop ebp
ret 0x18