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

Disassembly:
push 0xffffffffffffffff
push 0x1008500e
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100a6810]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc8]
mov ebp, dword [esp + 0xcc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
xor ebx, ebx
xor esi, esi
sar eax, 2
mov dword [esp + 0x18], esi
cmp eax, ebx
jbe 0x415a23
jmp 0x4156f6
mov esi, dword [esp + 0x18]
mov ebp, edx
cmp esi, eax
jb 0x4156ff
call 0x463734
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + esi*4]
mov eax, dword [esp + 0xc4]
push 0x48
mov dword [esp + 0x20], edx
mov dword [eax + 0x648], 0x1b
mov dword [esp + 0x30], ebx
call 0x463fee
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0xbc], ebx
cmp eax, ebx
je 0x415744
push 0x100ab494
push eax
call fcn.00423700
jmp 0x415746
xor eax, eax
or esi, 0xffffffff
mov dword [esp + 0xbc], esi
mov edi, 1
push 0x58
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0x3d
mov dword [esp + 0x3c], 7
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0xfaa
mov dword [esp + 0x4c], 3
mov dword [esp + 0x50], edi
call 0x463fee
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0xbc], edi
cmp eax, ebx
je 0x4157a6
push eax
call fcn.00429c50
jmp 0x4157a8
xor eax, eax
mov dword [esp + 0xbc], esi
mov ebp, 0xa
mov edi, 2
push 0x58
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], 6
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], edi
call 0x463fee
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0xbc], edi
cmp eax, ebx
je 0x4157fe
push eax
call fcn.00429c50
jmp 0x415800
xor eax, eax
mov dword [esp + 0xbc], esi
push 0x58
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], 6
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebx
call 0x463fee
add esp, 4
mov dword [esp + 0x20], eax
mov edi, 3
mov dword [esp + 0xbc], edi
cmp eax, ebx
je 0x415860
push eax
call fcn.00429c50
jmp 0x415862
xor eax, eax
mov dword [esp + 0xbc], esi
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx + 0x24]
mov ebp, dword [esp + 0xc4]
push 1
push esi
push 4
lea edx, [esp + 0x38]
mov dword [esp + 0xb4], edi
mov edi, dword [esp + 0x34]
push edx
push edi
add ebp, 0x584
push ebp
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], 0x4f
mov dword [esp + 0xb0], 7
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], 0xfaa
call fcn.00422ad0
mov eax, dword [esp + 0x30]
push ebx
push 0x100a81ec
push 0x100a8810
push ebx
inc edi
push eax
mov dword [esp + 0x3c], edi
call 0x47d236
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x415a02
push 3
push esi
mov eax, ebp
call fcn.00422dd0
mov ebp, eax
cmp ebp, ebx
je 0x415a02
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
cmp dword [edi + 0x2c], eax
jne 0x41591d
cmp dword [edi + 0x30], 1
jne 0x415935
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0x30], ebx
mov dword [edi + 0x2c], eax
cmp ecx, ebx
je 0x415935
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push ebx
push ebx
push ebx
push edi
call eax
lea esi, [edi + 0x40]
call fcn.00407ff0
mov esi, edi
call fcn.00423380
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
push 8
push 0x3d
push edi
call eax
mov ecx, dword [esp + 0xc4]
mov eax, dword [ecx + 0x90]
cmp eax, 1
je 0x415971
cmp eax, 4
je 0x415971
mov edx, 1
jmp 0x415973
xor edx, edx
mov ecx, dword [edi + 4]
mov eax, ecx
shr eax, 2
not eax
and eax, 1
cmp eax, edx
je 0x4159a5
cmp edx, ebx
je 0x41598d
and ecx, 0xfffffffb
jmp 0x415990
or ecx, 4
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
cmp ecx, ebx
je 0x4159a5
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push ebx
push ebx
push ebx
push edi
call eax
mov edx, dword [0x100a98f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x100a98f4
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0xbc], 5
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
push edx
push 0xfb4
push 0x10090370
lea edi, [esp + 0x30]
call fcn.004244c0
mov eax, dword [esp + 0x30]
add esp, 0xc
push eax
push ebp
call fcn.00424eb0
mov dword [esp + 0xbc], 0xffffffff
mov ecx, edi
call fcn.00407f50
mov edx, dword [esp + 0xcc]
mov eax, dword [edx + 0x10]
sub eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x18]
inc ecx
sar eax, 2
mov dword [esp + 0x18], ecx
cmp ecx, eax
jb 0x4156f0
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 0xc