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

Disassembly:
push 0xffffffffffffffff
push 0x100850ca
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100a6810]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov edi, dword [esp + 0xf0]
mov eax, dword [edi + 0x6ac]
sub eax, dword [edi + 0x6a8]
mov ebp, dword [esp + 0xf4]
sar eax, 6
cmp ebp, eax
ja 0x4146c4
mov ecx, dword [edi + 0x6ac]
sub ecx, dword [edi + 0x6a8]
sar ecx, 6
cmp ebp, ecx
jb 0x41428a
call 0x463734
mov esi, ebp
shl esi, 6
add esi, dword [edi + 0x6a8]
mov dword [esp + 0x28], esi
je 0x4146c4
lea edx, [esp + 0x2c]
push edx
call fcn.0041fc10
xor ebx, ebx
mov dword [esp + 0xe8], ebx
lea eax, [esp + 0xc8]
push eax
call fcn.0041fc10
mov byte [esp + 0xe8], 1
lea ecx, [esp + 0xc8]
push ecx
lea edx, [esp + 0x30]
push edx
mov eax, edi
call fcn.00413b60
lea eax, [edi + 0x584]
push ebp
push eax
call fcn.00422d50
mov ecx, eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
xor ebp, ebp
sar eax, 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebp
cmp eax, ebx
jbe 0x414669
jmp 0x414314
mov ebp, dword [esp + 0x18]
cmp ebp, eax
jb 0x41431d
call 0x463734
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + ebp*4]
push 0x48
mov dword [esp + 0x18], ecx
mov dword [edi + 0x648], 0x1b
mov dword [esp + 0x48], ebx
call 0x463fee
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xe8], 2
cmp eax, ebx
je 0x41435d
push 0x100ab494
push eax
call fcn.00423700
jmp 0x41435f
xor eax, eax
mov byte [esp + 0xe8], 1
push 0x58
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x3d
mov dword [esp + 0x54], 7
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 0xfaa
mov dword [esp + 0x64], 3
mov dword [esp + 0x68], 1
call 0x463fee
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xe8], 3
cmp eax, ebx
je 0x4143bd
push eax
call fcn.00429c50
jmp 0x4143bf
xor eax, eax
mov byte [esp + 0xe8], 1
mov esi, 0xa
mov ebp, 6
push 0x58
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], 2
call 0x463fee
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xe8], 4
cmp eax, ebx
je 0x414420
push eax
call fcn.00429c50
jmp 0x414422
xor eax, eax
mov byte [esp + 0xe8], 1
push 0x58
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], ebx
call 0x463fee
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xe8], 5
cmp eax, ebx
je 0x414484
push eax
call fcn.00429c50
jmp 0x414486
xor eax, eax
mov byte [esp + 0xe8], 1
mov edx, dword [esp + 0x14]
mov ebp, dword [edx + 0x24]
push 1
push ebp
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x24]
push 4
lea ecx, [esp + 0x50]
inc eax
push ecx
push eax
lea esi, [edi + 0x584]
push esi
mov dword [esp + 0xc4], 0x4f
mov dword [esp + 0xc8], 7
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], 0xfaa
mov dword [esp + 0xd8], 3
mov dword [esp + 0x34], eax
call fcn.00422ad0
push ebx
push 0x100a81ec
push 0x100a8810
push ebx
push ebx
push ebp
mov eax, esi
call fcn.00422dd0
push eax
call 0x47d236
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x41463e
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
cmp dword [edi + 0x2c], eax
jne 0x414530
cmp dword [edi + 0x30], 1
jne 0x414548
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0x30], ebx
mov dword [edi + 0x2c], eax
cmp ecx, ebx
je 0x414548
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
push ebx
push ebx
push ebx
push edi
call edx
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x90]
cmp eax, 1
je 0x414566
cmp eax, 4
je 0x414566
mov edx, 1
jmp 0x414568
xor edx, edx
mov ecx, dword [edi + 4]
mov eax, ecx
shr eax, 2
not eax
and eax, 1
cmp eax, edx
je 0x41459a
cmp edx, ebx
je 0x414582
and ecx, 0xfffffffb
jmp 0x414585
or ecx, 4
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
cmp ecx, ebx
je 0x41459a
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push ebx
push ebx
push ebx
push edi
call eax
mov ecx, dword [esp + 0xf0]
mov ebx, dword [esp + 0x14]
push ecx
call fcn.00414c90
push 2
push ebp
mov eax, esi
call fcn.00422dd0
mov esi, eax
test esi, esi
je 0x414629
mov ebx, 0xe59422
cmp dword [esi + 0x3c], ebx
je 0x4145dd
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x3c], ebx
test ecx, ecx
je 0x4145dd
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 0
push 0
push 0
push esi
call eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00407ef0
mov byte [esp + 0xe8], 6
push 0xfb1
push 0x10090070
lea edi, [esp + 0x2c]
call fcn.004244c0
mov edx, dword [esp + 0x2c]
add esp, 8
push edx
push esi
call fcn.00424eb0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], 0xffbc5d
mov byte [esp + 0xe8], 1
mov ecx, edi
call fcn.00407f50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xf0]
push ebp
push eax
push ecx
call fcn.00414ee0
xor ebx, ebx
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0xf0]
inc ecx
sar eax, 2
mov dword [esp + 0x18], ecx
cmp ecx, eax
jb 0x414310
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xd8]
sub edx, dword [esp + 0xd4]
test edx, 0xfffffffc
je 0x41469b
movzx edx, byte [esi + 0x3c]
lea eax, [esp + 0xc8]
push eax
inc ecx
push edx
push ecx
mov ecx, dword [esp + 0x100]
push edi
call fcn.00415480
mov byte [esp + 0xe8], bl
lea eax, [esp + 0xc8]
push eax
call fcn.0041fc80
mov dword [esp + 0xe8], 0xffffffff
lea ecx, [esp + 0x2c]
push ecx
call fcn.0041fc80
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret 8