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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x480de9
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4a6554]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x4a6554]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov al, byte [esi + 8]
test al, al
mov ebx, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
je 0x46e6d3
cmp al, 7
jne 0x46eb88
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebx
call edx
push 4
xor edi, edi
push edi
push str.dui_
lea ecx, [esp + 0x60]
mov dword [esp + 0x8c], edi
call fcn.00407850
cmp eax, 0xffffffff
setne al
mov byte [ebx + 0x34], al
movsx eax, byte [esi + 8]
add eax, 0xfffffffa
cmp eax, 1
ja 0x46e726
mov eax, dword [esi]
cmp eax, edi
je 0x46e726
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
mov edi, eax
mov esi, ecx
mov byte [esp + 0x2c], 0
jmp 0x46e72d
xor esi, esi
mov byte [esp + 0x2c], 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
mov ecx, dword [esp + 0x34]
movsx eax, byte [ecx + 8]
add eax, 0xfffffffa
cmp eax, 1
ja 0x46e855
mov eax, dword [ecx]
test eax, eax
je 0x46e855
test eax, eax
mov ebx, dword [eax + 4]
je 0x46e75e
cmp eax, edi
je 0x46e763
call fcn.0044782d
cmp ebx, esi
mov ebx, dword [esp + 0x30]
sete al
test al, al
jne 0x46eb70
test edi, edi
jne 0x46e77d
call fcn.0044782d
cmp esi, dword [edi + 4]
jne 0x46e787
call fcn.0044782d
lea eax, [esi + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.0046d2c0
mov byte [esp + 0x80], 1
cmp esi, dword [edi + 4]
jne 0x46e7a6
call fcn.0044782d
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x46e7b2
mov ecx, 0x48e967
mov eax, ecx
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x46e7d0
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.004033f0
mov byte [esp + 0x80], 2
mov esi, dword [esp + 0x4c]
cmp esi, 1
mov eax, esi
jb 0x46e7fe
mov eax, 1
cmp dword [esp + 0x50], 0x10
mov ecx, dword [esp + 0x3c]
jae 0x46e80d
lea ecx, [esp + 0x3c]
push eax
push str.xywhpz
push ecx
call fcn.00402b40
add esp, 0xc
test eax, eax
jne 0x46e85e
cmp esi, 1
jb 0x46e85e
cmp esi, 1
setne al
test eax, eax
jne 0x46e85e
sub esp, 0x10
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0046d2c0
lea edi, [ebx + 0xf8]
call fcn.00477890
add esp, 0x10
jmp 0x46eb20
mov al, byte [esp + 0x2c]
jmp 0x46e76c
push 1
push 0x48f2d4
push esi
push 0
lea ecx, [esp + 0x48]
call fcn.00402ad0
test eax, eax
jne 0x46e89b
sub esp, 0x10
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0046d2c0
lea edi, [ebx + 0xfc]
call fcn.00477890
add esp, 0x10
jmp 0x46eb20
mov ecx, dword [esp + 0x4c]
push 1
push 0x48f2d8
push ecx
push 0
lea ecx, [esp + 0x48]
call fcn.00402ad0
test eax, eax
jne 0x46e8dc
sub esp, 0x10
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0046d2c0
lea edi, [ebx + 0x100]
call fcn.00477890
add esp, 0x10
jmp 0x46eb20
mov eax, dword [esp + 0x4c]
push 1
push 0x48f2dc
push eax
push 0
lea ecx, [esp + 0x48]
call fcn.00402ad0
test eax, eax
jne 0x46e91d
sub esp, 0x10
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0046d2c0
lea edi, [ebx + 0x104]
call fcn.00477890
add esp, 0x10
jmp 0x46eb20
mov eax, dword [esp + 0x4c]
push 2
push 0x48f2e0
push eax
push 0
lea ecx, [esp + 0x48]
call fcn.00402ad0
test eax, eax
jne 0x46e95e
sub esp, 0x10
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0046d2c0
lea edi, [ebx + 0x10c]
call fcn.00477890
add esp, 0x10
jmp 0x46eb20
mov eax, dword [esp + 0x4c]
push 2
push 0x48f2e4
push eax
push 0
lea ecx, [esp + 0x48]
call fcn.00402ad0
test eax, eax
jne 0x46e99f
sub esp, 0x10
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0046d2c0
lea edi, [ebx + 0x110]
call fcn.00477890
add esp, 0x10
jmp 0x46eb20
mov esi, 0x48f2e8
lea ecx, [esp + 0x38]
call fcn.00402940
test al, al
je 0x46e9d7
sub esp, 0x10
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0046d2c0
lea edi, [ebx + 0x108]
call fcn.00477890
add esp, 0x10
jmp 0x46eb20
mov esi, 0x48f2ec
lea ecx, [esp + 0x38]
call fcn.00402940
test al, al
je 0x46ea0f
sub esp, 0x10
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0046d2c0
lea edi, [ebx + 0x118]
call fcn.004776f0
add esp, 0x10
jmp 0x46eb20
mov esi, 0x48f2f0
lea ecx, [esp + 0x38]
call fcn.00402940
test al, al
je 0x46ea47
sub esp, 0x10
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0046d2c0
lea edi, [ebx + 0x159]
call fcn.00477960
add esp, 0x10
jmp 0x46eb20
mov esi, 0x48f304
lea ecx, [esp + 0x38]
call fcn.00402940
test al, al
je 0x46ea7f
sub esp, 0x10
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0046d2c0
lea edi, [ebx + 0x158]
call fcn.00477960
add esp, 0x10
jmp 0x46eb20
mov esi, 0x48f30c
lea ecx, [esp + 0x38]
call fcn.00402940
test al, al
je 0x46eab4
sub esp, 0x10
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0046d2c0
lea edi, [ebx + 0x120]
call fcn.004775f0
add esp, 0x10
jmp 0x46eb20
mov esi, str.hint
lea ecx, [esp + 0x38]
call fcn.00402940
test al, al
je 0x46eae9
sub esp, 0x10
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0046d2c0
lea edi, [ebx + 0x13c]
call fcn.004774b0
add esp, 0x10
jmp 0x46eb20
lea eax, [esp + 0x14]
call fcn.0046bef0
test al, al
je 0x46eb20
sub esp, 0x1c
lea eax, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.004034c0
mov ecx, dword [ebx + 0xe0]
push ebx
lea ebx, [esp + 0x34]
call fcn.004036c0
mov ebx, dword [esp + 0x50]
add esp, 0x20
cmp dword [esp + 0x50], 0x10
jb 0x46eb34
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00446c0b
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x80], 0
call fcn.0046d0d0
lea esi, [esp + 0x24]
call fcn.00409ce0
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
jmp 0x46e735
cmp dword [esp + 0x6c], 0x10
jb 0x46eb84
mov edx, dword [esp + 0x58]
push edx
call fcn.00446c0b
add esp, 4
mov al, 1
jmp 0x46eb8a
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00447fc5
mov esp, ebp
pop ebp
ret 4