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

Disassembly:
sub esp, 0x1e8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1fc]
mov ebp, dword [edi + 0x40]
mov eax, dword [ebp + 0x1a68]
mov ebx, dword [eax]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x28]
call fcn.0046ec20
xor ebx, ebx
mov esi, eax
mov al, byte [edi + 0x16]
cmp al, 4
setne bl
xor ecx, ecx
push 0x150
push 0
dec ebx
and ebx, 0xa8
add ebx, 0xa8
cmp al, 4
setne cl
xor edx, edx
mov dword [esp + 0x1c], ebx
dec ecx
and ecx, 0x1c
add ecx, 0x1c
cmp al, 4
sete dl
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0x24], ecx
lea edx, [edx*8 + 8]
mov dword [esp + 0x28], edx
call fcn.0051c1b0
add esp, 0xc
push 0x38
lea ecx, [esp + 0x74]
push 0
push ecx
call fcn.0051c1b0
add esp, 0xc
test esi, esi
jl 0x46f24c
push 4
push 0x120001
push 0
push 0x1000
push 0
push 0x1000
lea edi, [ebp + 0x19d0]
push edi
push ebp
call fcn.00458a80
mov edx, dword [edi]
or edx, dword [edi + 4]
mov esi, eax
jne 0x46f24c
mov esi, 0xc000009a
xor ecx, ecx
cmp esi, ecx
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xdc], ecx
jl 0x46f4e5
mov ecx, dword [ebp + 0x19d0]
mov eax, 4
mov word [esp + 0xa8], ax
mov eax, dword [ebp + 0x1a68]
mov edx, dword [eax + 0x28]
xor esi, esi
mov edi, ecx
add edi, ebx
mov dword [esp + 0xc0], edx
mov edx, dword [eax + 0x2c]
mov dword [esp + 0xd8], edi
mov edi, dword [eax + 0x30]
mov dword [esp + 0xc4], edx
mov edx, dword [eax + 0x48]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x104], eax
movzx eax, word [esp + 0x42]
mov word [esp + 0xe2], ax
movzx eax, word [esp + 0x40]
mov dword [esp + 0xc8], edx
mov edx, dword [ebp + 0x19d4]
mov word [esp + 0xaa], bx
mov dword [esp + 0x100], edi
mov edi, dword [esp + 0x18]
mov word [esp + 0xe0], ax
mov ebx, edx
adc ebx, esi
xor eax, eax
add edi, ecx
mov ecx, dword [ebp + 0x19b0]
mov dword [esp + 0x3c], eax
adc eax, edx
add edi, dword [esp + 0x14]
mov edx, dword [ebp + 0x19b4]
adc eax, esi
mov dword [esp + 0x118], ecx
mov dword [esp + 0xe8], edi
mov dword [esp + 0xec], eax
mov eax, dword [ebp + 0x19d4]
mov dword [esp + 0xdc], ebx
mov ebx, dword [esp + 0x1fc]
mov dword [esp + 0xb8], 2
mov dword [esp + 0x11c], edx
mov ecx, 0x36
lea esi, [esp + 0x118]
lea edi, [esp + 0x120]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x19d0]
push eax
push ecx
lea eax, [esp + 0xb0]
call fcn.0046ef90
add esp, 8
test al, al
jne 0x46f4e0
mov ax, word [esp + 0x58]
mov dx, word [esp + 0x5a]
mov ecx, dword [ebp + 0x19d0]
mov esi, dword [ebp + 0x19d4]
mov word [esp + 0x88], ax
movzx eax, word [esp + 0x42]
mov word [esp + 0x8a], dx
cdq
mov edi, eax
add edi, ecx
adc edx, esi
add edi, dword [esp + 0x18]
mov eax, 0
adc edx, dword [esp + 0x3c]
add edi, dword [esp + 0x14]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0xdc]
adc edx, eax
add edi, 2
adc edx, eax
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0xd8]
push ecx
push edx
lea eax, [esp + 0x78]
mov ecx, ebx
mov dword [esp + 0x98], edi
mov dword [esp + 0x7c], esi
call fcn.0046eb40
add esp, 8
test al, al
jne 0x46f4e0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0xec]
movzx edx, word [esp + 0xe2]
push eax
mov eax, dword [esp + 0xec]
push ecx
push eax
mov ecx, ebx
call fcn.00485c10
test al, al
jne 0x46f4e0
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x94]
movzx edx, word [esp + 0x8a]
push ecx
mov ecx, dword [esp + 0x94]
push eax
push ecx
mov ecx, ebx
call fcn.00485c10
test al, al
jne 0x46f4e0
push 4
push 0x120001
push 0
push 0x1000
push 0
push 0x1000
lea edi, [ebp + 0x19d8]
push edi
push ebp
call fcn.00458a80
mov edx, dword [edi]
or edx, dword [edi + 4]
mov esi, eax
jne 0x46f487
mov esi, 0xc000009a
jmp 0x46f4e5
test esi, esi
jl 0x46f4e5
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x1c]
xor edx, edx
add ecx, eax
push edi
adc edx, edi
mov dword [esp + 0x2c], ecx
push eax
lea eax, [esp + 0x28]
mov ecx, ebx
mov dword [esp + 0x34], edx
call fcn.0046bc90
test al, al
jne 0x46f4e0
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov eax, ecx
or eax, edi
je 0x46f4e5
mov ax, word [esp + 0x20]
test ax, ax
je 0x46f4e5
mov edx, dword [esp + 0x30]
push edx
push edi
movzx edx, ax
push ecx
mov ecx, ebx
call fcn.00485c10
test al, al
je 0x46f4e5
mov esi, 0xc0000005
mov eax, dword [esp + 0x30]
test eax, eax
je 0x46f4f6
push eax
call fcn.005099c8
add esp, 4
mov eax, dword [esp + 0x68]
test eax, eax
je 0x46f507
push eax
call fcn.005099c8
add esp, 4
mov eax, dword [esp + 0x50]
test eax, eax
je 0x46f518
push eax
call fcn.005099c8
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1e8
ret 4