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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x46faea
sub esp, 0x7c
mov eax, 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x46faa6
movzx edx, byte [0xbb55c0]
test dl, dl
je 0x46fa9a
mov dword [0xbb55c4], ecx
mov edx, dword [0xbc7270]
test edx, edx
jne 0x46fa83
mov eax, dword [esp + 0x84]
mov dword [0xbb55c8], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x46fa78
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x46f61d
or edx, 0x80
mov ebx, edx
and edx, 0x1f
cmp edx, 0x17
jne 0x46fa3a
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00479ba0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x46fa29
cmp eax, 1
je 0x46fa18
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 8], ecx
call fcn.0047c110
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x28]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
lea edx, [0x8fdd00]
cmp edx, ecx
jne 0x46facc
movzx ecx, byte [eax + 0xf]
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
test cl, 0x80
jne 0x46f83b
cmp edx, 4
je 0x46f7cd
and ecx, 0x1f
cmp ecx, 0x18
je 0x46f75f
mov dword [esp + 0x70], eax
mov dword [esp], eax
call fcn.00409e00
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
lea ecx, [0x7a3760]
mov dword [esp], ecx
call fcn.00409dc0
mov eax, dword [esp + 4]
lea ecx, [0x47f1c0]
mov dword [eax], ecx
mov ecx, dword [0xbc7270]
test ecx, ecx
jne 0x46f74d
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [0xbc7270]
test ecx, ecx
jne 0x46f72f
mov ecx, dword [esp + 0x70]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 0x10], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x70]
call fcn.0044cc20
lea edi, [ecx + 0x10]
mov eax, dword [esp + 0x54]
call fcn.0044cc20
mov eax, ecx
jmp 0x46f724
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x50]
call fcn.0044cc20
mov eax, ecx
jmp 0x46f705
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov edx, dword [eax]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
lea ebx, [0x786300]
mov dword [esp], ebx
call fcn.00409dc0
mov eax, dword [esp + 4]
lea ecx, [0x47efd0]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xbc7270]
test ecx, ecx
jne 0x46f7bb
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x58]
call fcn.0044cc20
mov eax, ecx
jmp 0x46f7b0
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
lea ebx, [0x7862a0]
mov dword [esp], ebx
call fcn.00409dc0
mov eax, dword [esp + 4]
lea ecx, [0x47ef60]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xbc7270]
test ecx, ecx
jne 0x46f829
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x5c]
call fcn.0044cc20
mov eax, ecx
jmp 0x46f81e
cmp edx, 2
ja 0x46f92e
cmp edx, 1
je 0x46f8c0
cmp edx, 2
jne 0x46f6c6
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax]
mov dword [esp + 0x68], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
lea ebx, [0x7860c0]
mov dword [esp], ebx
call fcn.00409dc0
mov eax, dword [esp + 4]
lea ecx, [0x47f120]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xbc7270]
test ecx, ecx
jne 0x46f8ae
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x68]
call fcn.0044cc20
mov eax, ecx
jmp 0x46f8a3
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
lea ebx, [0x7861e0]
mov dword [esp], ebx
call fcn.00409dc0
mov eax, dword [esp + 4]
lea ecx, [0x47f170]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xbc7270]
test ecx, ecx
jne 0x46f91c
mov ecx, dword [esp + 0x64]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x64]
call fcn.0044cc20
mov eax, ecx
jmp 0x46f911
cmp edx, 4
je 0x46f9aa
cmp edx, 8
jne 0x46f6c6
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x44], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
lea ebx, [0x786180]
mov dword [esp], ebx
call fcn.00409dc0
mov eax, dword [esp + 4]
lea ecx, [0x47f070]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xbc7270]
test ecx, ecx
jne 0x46f998
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x60]
call fcn.0044cc20
mov eax, ecx
jmp 0x46f98d
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov eax, dword [eax]
mov dword [esp + 0x6c], eax
lea ebx, [0x786120]
mov dword [esp], ebx
call fcn.00409dc0
mov eax, dword [esp + 4]
lea ecx, [0x47f0d0]
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xbc7270]
test ecx, ecx
jne 0x46fa06
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x6c]
call fcn.0044cc20
mov eax, ecx
jmp 0x46f9fb
lea eax, [0x8a4454]
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea eax, [0x8a4450]
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
mov dword [esp + 0x48], edx
lea eax, [0x792e60]
mov dword [esp], eax
call fcn.00409dc0
mov edi, dword [esp + 4]
mov dword [edi + 4], 7
mov eax, dword [0xbc7270]
test eax, eax
jne 0x46fa6b
lea eax, [0x7dd243]
mov dword [edi], eax
jmp 0x46fab1
lea eax, [0x7dd243]
call fcn.0044cc20
jmp 0x46fab1
xor edx, edx
xor eax, eax
xor ecx, ecx
jmp 0x46f61d
lea edi, [0xbb55c8]
mov eax, dword [esp + 0x84]
call fcn.0044cc20
jmp 0x46f5f5
mov eax, dword [esp + 0x84]
jmp 0x46f5f5
xor edx, edx
xor eax, eax
xor ecx, ecx
jmp 0x46f61d
mov eax, dword [esp + 0x48]
mov dword [edi + 8], eax
lea eax, [0x780b40]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.00427510
ud2
mov dword [esp], ecx
lea eax, [0x7d52c0]
mov dword [esp + 4], eax
lea eax, [0x7c9ea0]
mov dword [esp + 8], eax
call fcn.004072f0
ud2
call fcn.0044b4c0
jmp fcn.0046f590