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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x17c
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x174]
call fcn.00468b30
test eax, eax
jne 0x46f656
mov ecx, dword [ebp + 0x30]
mov dword [ecx], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
lea edx, [ebp + 8]
lea edi, [ebx + 0x9c]
push edx
mov ecx, edi
call fcn.00467af0
test eax, eax
je 0x46f67d
mov eax, dword [ebp + 0x30]
mov dword [eax], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
cmp dword [ebp + 0x10], 0
je 0x46f6fa
lea esi, [ebx + 0x20]
push esi
lea ecx, [esp + 0x4c]
call fcn.004674e0
mov ecx, esi
call fcn.00467350
test eax, eax
mov dword [esp + 0x2c], eax
je 0x46f6f1
nop
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00458f10
add esp, 8
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.004673b0
mov ecx, dword [esp + 0x10]
call fcn.00483dc0
cmp eax, dword [ebp + 8]
je 0x46f7a2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46f6ea
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
mov dword [esp + 0x10], 0
cmp dword [esp + 0x2c], 0
jne 0x46f6a0
lea ecx, [esp + 0x48]
call fcn.00444590
lea ecx, [esp + 0x14]
push 4
push ecx
call fcn.00458f10
add esp, 8
lea edx, [esp + 0x14]
push edx
lea eax, [ebp + 8]
lea ecx, [ebx + 0x150]
push eax
mov dword [esp + 0x88], ecx
call fcn.004679c0
test eax, eax
jne 0x46fe30
lea ecx, [esp + 0x30]
call fcn.00498320
lea ecx, [esp + 0x18]
push 4
push ecx
call fcn.00458f10
add esp, 8
lea edx, [esp + 0x18]
push edx
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.004679c0
test eax, eax
je 0x46f9b6
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 2
je 0x46f7de
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x2c]
mov dword [ecx], 0
mov dword [edx], 0xc000000d
lea ecx, [esp + 0x18]
call fcn.0048e940
lea ecx, [esp + 0x30]
call fcn.00498440
lea ecx, [esp + 0x14]
call fcn.0048e940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x2c]
mov dword [eax], 0
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [ecx], 0xc000000d
je 0x46f7cc
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x48]
call fcn.00444590
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
push eax
call fcn.00485da0
add esp, 4
test eax, eax
jne 0x46f80d
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x2c]
mov dword [eax], 0
mov dword [ecx], 0xc0000022
jmp 0x46f77e
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x50]
push eax
call edx
push eax
lea ecx, [esp + 0x34]
call fcn.00498420
lea ecx, [esp + 0x50]
call fcn.00498440
lea ecx, [esp + 0x48]
call fcn.00498320
lea ecx, [esp + 0x84]
call fcn.00498320
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x34]
call fcn.00498450
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [eax + 4]
lea edx, [esp + 0x4c]
push edx
mov edx, dword [eax]
push ecx
push edx
mov ecx, ebx
call fcn.0046bb20
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00458f10
add esp, 8
lea ecx, [esp + 0xc8]
call fcn.004947b0
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x34]
call fcn.00498450
mov esi, dword [ebx + 0x4c]
lea ecx, [esp + 0x48]
call fcn.00498230
movzx edx, ax
push edx
lea eax, [esp + 0x98]
push eax
push esi
lea ecx, [esp + 0xd4]
call fcn.004947e0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0xcc]
call fcn.00498020
lea ecx, [esp + 0xf8]
call fcn.004947b0
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x34]
call fcn.00498450
mov esi, dword [ebx + 0x48]
lea ecx, [esp + 0x48]
call fcn.00498230
movzx eax, ax
push eax
lea ecx, [esp + 0xa4]
push ecx
push esi
lea ecx, [esp + 0x104]
call fcn.00497d30
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0xfc]
call fcn.00498020
mov esi, dword [esp + 0x1c]
xor edi, edi
cmp esi, edi
mov dword [esp + 0x2c], esi
je 0x46f93c
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
lea edx, [esp + 0x38]
push 4
push edx
call fcn.00458f10
lea eax, [esp + 0x44]
push 4
push eax
call fcn.00458f10
add esp, 0x10
lea ecx, [esp + 0xc8]
call fcn.004c66e0
lea ecx, [esp + 0x68]
mov dword [esp + 0x20], eax
call fcn.00485880
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00485770
test eax, eax
je 0x46fb04
lea ecx, [esp + 0x50]
call fcn.00498320
lea ecx, [esp + 0x60]
call fcn.00498320
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x46f9f3
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
push ecx
push edx
jmp 0x46fa44
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x30]
push eax
push 0
push 0x40
push 0
push ecx
lea ecx, [esp + 0x7c]
call fcn.00498110
mov ecx, eax
call fcn.004c87c0
push eax
mov ecx, ebx
call fcn.0046e920
test eax, eax
jne 0x46f830
mov edx, dword [ebp + 0x30]
mov dword [edx], 1
jmp 0x46f77e
cmp dword [esp + 0x68], edi
jne 0x46fa3a
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x20]
push edx
lea eax, [esp + 0xb4]
push eax
call fcn.00485560
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0xc0]
push edx
call fcn.00486010
add esp, 0x14
test eax, eax
jne 0x46fa57
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.004983c0
push eax
lea ecx, [esp + 0x54]
call fcn.00498420
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x64]
call fcn.00498450
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x54]
call fcn.00498450
mov ecx, dword [ebx + 0x4c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
push esi
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0x4c]
push eax
call edx
mov eax, dword [esp + 0x40]
push eax
push esi
lea ecx, [esp + 0x40]
call fcn.00464070
cmp esi, edi
je 0x46fab4
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov esi, dword [esp + 0x40]
cmp esi, edi
je 0x46fad8
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x46fad8
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x40], edi
lea ecx, [esp + 0x60]
call fcn.00498440
lea ecx, [esp + 0x50]
call fcn.00498440
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00485770
test eax, eax
jne 0x46f986
mov dword [esp + 0x2c], esi
mov edx, dword [ebx + 0x4c]
push edx
lea ecx, [esp + 0x60]
call fcn.004949b0
mov eax, dword [ebx + 0x48]
push eax
lea ecx, [esp + 0x5c]
call fcn.00498080
lea ecx, [esp + 0x128]
call fcn.004947b0
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [esp + 0x34]
call fcn.00498450
mov edi, dword [ebx + 0x4c]
lea ecx, [esp + 0x48]
call fcn.00498230
movzx edx, ax
push edx
lea eax, [esp + 0xbc]
push eax
push edi
lea ecx, [esp + 0x134]
call fcn.004947e0
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x12c]
call fcn.00498020
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov edi, dword [esp + 0x1c]
call eax
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
mov ecx, edi
mov dword [esp + 0x20], eax
call edx
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x46fc5e
mov eax, dword [esp + 0x28]
xor edi, edi
cmp eax, edi
je 0x46fbaf
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x128]
call fcn.00464b40
lea ecx, [esp + 0x58]
call fcn.004980b0
lea ecx, [esp + 0x5c]
call fcn.004949e0
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x46fbe1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x46fbf5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x38], edi
cmp esi, edi
je 0x46fc01
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x46fc15
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x24], edi
lea ecx, [esp + 0xf8]
call fcn.00464b40
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x46fc35
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0xc8]
call fcn.00464b40
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x46f871
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], edi
jmp 0x46f871
lea ecx, [esp + 0x158]
call fcn.004947b0
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x34]
call fcn.00498450
mov edi, dword [ebx + 0x48]
lea ecx, [esp + 0x48]
call fcn.00498230
movzx ecx, ax
push ecx
lea edx, [esp + 0x90]
push edx
push edi
lea ecx, [esp + 0x164]
call fcn.00497d30
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x15c]
call fcn.00498020
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov edi, dword [esp + 0x24]
call eax
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
mov ecx, edi
mov dword [esp + 0x20], eax
call edx
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x46fd37
mov eax, dword [esp + 0x44]
xor edi, edi
cmp eax, edi
je 0x46fceb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x44], edi
lea ecx, [esp + 0x158]
call fcn.00464b40
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x46fd0b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x128]
call fcn.00464b40
lea ecx, [esp + 0x58]
call fcn.004980b0
lea ecx, [esp + 0x5c]
call fcn.004949e0
lea ecx, [esp + 0x38]
call fcn.004995c0
jmp 0x46fbf5
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x46fd4b
mov eax, dword [ecx]
mov edx, dword [esp + 0x3c]
mov eax, dword [eax + 0x1c]
push edx
call eax
lea ecx, [esp + 0x44]
call fcn.0048e940
lea ecx, [esp + 0x158]
call fcn.00464b40
lea ecx, [esp + 0x28]
call fcn.0048e940
lea ecx, [esp + 0x128]
call fcn.00464b40
lea ecx, [esp + 0x58]
call fcn.004980b0
lea ecx, [esp + 0x5c]
call fcn.004949e0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00463f90
lea ecx, [esp + 0x38]
call fcn.004995c0
lea ecx, [esp + 0x2c]
call fcn.0048e940
lea ecx, [esp + 0x24]
call fcn.0048e940
lea ecx, [esp + 0xf8]
call fcn.00464b40
lea ecx, [esp + 0x1c]
call fcn.0048e940
lea ecx, [esp + 0xc8]
call fcn.00464b40
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x14]
push edx
push eax
push ecx
call fcn.00485100
add esp, 0xc
test eax, eax
jl 0x46fe00
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x14]
push edx
lea eax, [ebp + 8]
push eax
call fcn.00467890
lea ecx, [esp + 0x10]
call fcn.0048e940
lea ecx, [esp + 0x84]
call fcn.00498440
lea ecx, [esp + 0x48]
call fcn.00498440
lea ecx, [esp + 0x18]
call fcn.0048e940
lea ecx, [esp + 0x30]
call fcn.00498440
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x46fe8b
mov eax, dword [ebp + 0x28]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp + 0x24]
mov edx, dword [edx + 0xc]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
call edx
test eax, eax
jl 0x46fe87
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x2c]
mov dword [eax], 0
mov dword [ecx], 0x103
lea ecx, [esp + 0x14]
call fcn.0048e940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov edx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x2c]
mov dword [edx], 0
mov dword [eax], 0xc000000d
je 0x46fea9
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c