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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x4a02f0]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov edi, edx
mov eax, dword [edi + 4]
mov ebx, ecx
mov ecx, dword [edi]
xor esi, esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], esi
cmp ecx, eax
je 0x4196a2
mov edx, dword [esp + 0x14]
push edx
push ecx
push eax
call fcn.00419ec0
mov edi, dword [edi + 4]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
call fcn.00419ff0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
add esp, 4
mov dword [eax + 4], edx
push 0x2c
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call fcn.00419dd0
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 4
add eax, edx
mov byte [esp + 0xf], 1
mov esi, 0xf
je 0x419956
mov ecx, edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
xor ebx, ebx
cmp dword [ecx + 0x10], ebx
je 0x41993b
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x98]
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.004194c0
add esp, 4
test al, al
jne 0x41973b
mov byte [esp + 0xf], bl
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
jne 0x41977a
or dword [esp + 0x10], 1
push ebx
push 0x49b3de
lea ecx, [esp + 0xb8]
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
call fcn.00402dd0
lea edi, [esp + 0xb0]
jmp 0x4197a8
or dword [esp + 0x10], 2
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x84]
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
call fcn.004031f0
lea edi, [esp + 0x78]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.004031f0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
cmp ecx, edi
je 0x41981f
cmp dword [edi + 0x14], 0x10
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jae 0x419801
mov edx, dword [edi + 0x10]
inc edx
push edx
mov eax, ecx
push edi
push eax
call fcn.0046db60
add esp, 0xc
jmp 0x419809
mov ecx, dword [edi]
mov dword [esp + 0x5c], ecx
mov dword [edi], ebx
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x40]
call fcn.00419a90
mov edi, 0x10
cmp dword [esp + 0x70], edi
jb 0x419844
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0046d64b
add esp, 4
xor ebx, ebx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x54], edi
jb 0x419865
mov edx, dword [esp + 0x40]
push edx
call fcn.0046d64b
add esp, 4
test byte [esp + 0x10], 2
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
je 0x4198a5
and dword [esp + 0x10], 0xfffffffd
cmp dword [esp + 0x8c], edi
jb 0x419893
mov eax, dword [esp + 0x78]
push eax
call fcn.0046d64b
add esp, 4
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
test byte [esp + 0x10], 1
je 0x4198ca
and dword [esp + 0x10], 0xfffffffe
cmp dword [esp + 0xc4], edi
jb 0x4198ca
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0046d64b
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x419914
mov edi, eax
cmp eax, dword [esp + 0x1c]
je 0x419906
lea ebx, [ebx]
cmp dword [edi + 0x14], 0x10
jb 0x4198f5
mov edx, dword [edi]
push edx
call fcn.0046d64b
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov byte [edi], bl
add edi, 0x1c
cmp edi, dword [esp + 0x1c]
jne 0x4198e0
push eax
call fcn.0046d64b
add esp, 4
mov edi, 0x10
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
cmp dword [esp + 0xa8], edi
jb 0x419939
mov eax, dword [esp + 0x94]
push eax
call fcn.0046d64b
add esp, 4
xor ebx, ebx
mov ecx, dword [esp + 0x28]
add ecx, 0x1c
dec dword [esp + 0x14]
mov dword [esp + 0x28], ecx
jne 0x4196f3
mov edi, dword [esp + 0x30]
jmp 0x419958
xor ebx, ebx
cmp edi, ebx
je 0x419995
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x34]
je 0x419988
cmp dword [edi + 0x14], 0x10
jb 0x419977
mov edx, dword [edi]
push edx
call fcn.0046d64b
add esp, 4
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov byte [edi], bl
add edi, 0x1c
cmp edi, dword [esp + 0x34]
jne 0x419966
mov eax, dword [esp + 0x30]
push eax
call fcn.0046d64b
add esp, 4
mov ecx, dword [esp + 0xcc]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret