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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b52c5
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, esp
push eax
lea eax, [esp + 0x358]
mov dword fs:[0], eax
mov esi, edx
test byte [esi + 0xc], 2
mov edi, ecx
mov dword [esp + 0x28], edi
je 0x46dd33
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
mov dword [esp + 0x94], eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esp + 0x94], eax
mov byte [esp + 0x98], 1
lea eax, [esi + 0x3c]
push eax
mov dword [esp + 0x80], eax
lea eax, [esp + 0x64]
add edi, 0x28
push eax
mov dword [esp + 0x368], 0
call fcn.0046e730
mov esi, dword [esp + 0x60]
mov ebx, dword [edi + 0x18]
mov edi, dword [edi]
test esi, esi
je 0x46d510
cmp esi, edi
je 0x46d515
call fcn.0048b3f2
mov edi, dword [esp + 0x64]
cmp edi, ebx
je 0x46dd25
test esi, esi
jne 0x46d5fb
call fcn.0048b3f2
cmp edi, dword [esi + 0x18]
jne 0x46d538
call fcn.0048b3f2
mov esi, dword [edi + 0x10]
cmp byte [esi + 8], 0
mov dword [esp + 0x1c], esi
jne 0x46dd25
xor eax, eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esi + 8], 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x5c], eax
call fcn.004688d0
lea edx, [esp + 0x78]
push edx
mov ecx, esi
mov ebx, 0x4c0288
mov byte [esp + 0x364], 1
call fcn.004046f0
add esp, 4
push eax
lea eax, [esp + 0x60]
push eax
mov edi, 0x4c0cb4
mov byte [esp + 0x368], 2
call fcn.00406590
add esp, 8
mov byte [esp + 0x360], 4
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d5c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
mov ebx, dword [ecx - 0xc]
mov dword [esp + 0x24], ebx
call fcn.0046c780
mov dword [esp + 0x54], 0
lea esi, [esp + 0x6c]
call fcn.0047e820
mov byte [esp + 0x360], 6
cmp dword [0x4e47e0], 1
jne 0x46d602
lea esi, [esp + 0x54]
call fcn.0040de30
jmp 0x46d60b
mov esi, dword [esi]
jmp 0x46d52e
lea edi, [esp + 0x6c]
call fcn.0047e880
mov edi, dword [esp + 0x5c]
lea esi, [esp + 0xfc]
call fcn.00449b60
mov esi, eax
mov dword [esp + 0x20], esi
cmp esi, 0xffffffff
je 0x46d8cb
lea ebx, [ebx]
cmp word [esp + 0x128], 0x2e
jne 0x46d661
mov ax, word [esp + 0x12a]
test ax, ax
je 0x46d869
cmp ax, 0x2e
jne 0x46d661
cmp word [esp + 0x12c], 0
je 0x46d869
mov edx, dword [0x4e3954]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3954
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x360], 7
test ebx, ebx
jle 0x46d6b2
mov eax, dword [edx]
movzx ecx, word [eax + ebx*2 - 2]
cmp cx, 0x5c
je 0x46d6b2
movzx eax, word [eax + ebx*2 - 2]
cmp ax, 0x2f
je 0x46d6b2
mov edx, dword [edx]
lea ecx, [esp + 0x128]
push ecx
push edx
push 0x4c3dd0
jmp 0x46d6c2
mov ecx, dword [edx]
lea eax, [esp + 0x128]
push eax
push ecx
push str._s_s
lea edi, [esp + 0x20]
call fcn.00406770
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
test byte [esp + 0xfc], 0x10
mov dword [esp + 0x18], eax
je 0x46d786
push 1
push ecx
mov dword [esp + 0x4c], esp
mov esi, esp
push eax
call fcn.00406650
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [esp + 0xd4]
call fcn.0046f060
mov edi, eax
mov byte [esp + 0x368], 8
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00406650
mov edx, dword [edi + 4]
lea esi, [eax + 0x10]
add esp, 0xc
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], edx
lea ebx, [esp + 0x80]
lea edi, [esp + 0x2c]
mov byte [esp + 0x360], 9
call fcn.0046e7c0
lea eax, [esi - 0x10]
mov byte [esp + 0x360], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d772
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x360], 7
mov eax, dword [esp + 0xcc]
jmp 0x46d820
push 2
push ecx
mov dword [esp + 0x4c], esp
mov esi, esp
push eax
call fcn.00406650
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [esp + 0xcc]
call fcn.0046f060
mov edi, eax
mov byte [esp + 0x368], 0xa
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00406650
mov ecx, dword [edi + 4]
lea esi, [eax + 0x10]
add esp, 0xc
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], ecx
lea ebx, [esp + 0x88]
lea edi, [esp + 0x2c]
mov byte [esp + 0x360], 0xb
call fcn.0046e7c0
lea eax, [esi - 0x10]
mov byte [esp + 0x360], 0xa
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46d811
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x360], 7
mov eax, dword [esp + 0xc4]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d83c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x360], 6
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d861
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov eax, dword [0x4e7008]
test eax, eax
jne 0x46d87c
call fcn.00449cf0
mov dword [0x4e7008], eax
mov ecx, dword [eax + 0x140]
cmp ecx, 2
jne 0x46d89b
mov eax, dword [0x4e7008]
mov edx, dword [eax + 0x140]
cmp edx, ecx
jne 0x46d89b
mov eax, dword [eax + 0x6c]
jmp 0x46d89d
xor eax, eax
test eax, eax
je 0x46d8ae
lea ecx, [esp + 0xfc]
push ecx
push esi
call eax
jmp 0x46d8bd
lea edx, [esp + 0xfc]
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
cmp eax, 1
je 0x46d630
call fcn.00449b10
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov edx, ecx
sub edx, eax
sar edx, 3
test edx, edx
jbe 0x46dbca
mov ebx, ecx
cmp eax, ecx
jbe 0x46d8f5
call fcn.0048b3f2
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
mov edi, eax
cmp eax, ecx
jbe 0x46d904
call fcn.0048b3f2
mov eax, dword [esp + 0x2c]
push ebx
push esi
push edi
push eax
call fcn.0046f0e0
add esp, 0x10
lea esi, [esp + 0x60]
call fcn.0041ab10
mov eax, dword [eax]
mov edx, dword [esp + 0x28]
call fcn.0046e2b0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
mov dword [esp + 0x14], 0
sar eax, 3
test eax, eax
jbe 0x46dbad
jmp 0x46d950
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
cmp esi, eax
jb 0x46d967
call fcn.0048b3f2
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + esi*8]
lea edi, [esi*8]
sub eax, 0x10
push eax
call fcn.00406650
add eax, 0x10
add esp, 4
mov dword [esp + 0x50], eax
mov byte [esp + 0x360], 0xc
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x38]
sar edx, 3
cmp esi, edx
jb 0x46d9a4
call fcn.0048b3f2
cmp dword [0x4e47e0], 1
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + edi + 4]
mov dword [esp + 0x1c], ecx
jne 0x46dac2
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov edi, 1
push eax
mov dword [esp + 0x28], edi
call fcn.00406650
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x360], 0xd
mov eax, dword [esi - 0xc]
test eax, eax
je 0x46da06
movzx eax, word [esi + eax*2 - 2]
cmp ax, 0x5c
je 0x46da06
push 0x5c
lea esi, [esp + 0x1c]
call fcn.00409070
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x1c], edi
jne 0x46da9e
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x1c]
mov ebx, 0x4c0288
call fcn.004046f0
add esp, 4
push eax
lea eax, [esp + 0x50]
push eax
mov edi, 0x4c0cb4
mov byte [esp + 0x368], 0xe
call fcn.00406590
add esp, 8
mov byte [esp + 0x360], 0x10
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46da69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x4c]
call fcn.0046d300
mov dword [esp + 0x20], eax
mov byte [esp + 0x360], 0xd
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46da9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x360], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46dac2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x58]
test ebx, ebx
jne 0x46dacf
mov ebx, 0xffff0001
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x46dbc3
call fcn.0048b3f2
xor eax, eax
mov edi, dword [esp + 0x64]
cmp edi, dword [eax + 0x18]
jne 0x46daf0
call fcn.0048b3f2
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push esi
push ecx
mov ecx, dword [edi + 0xc]
mov edx, ebx
call fcn.0046cb60
cmp dword [esp + 0x44], 0
mov edi, eax
je 0x46db65
test edi, edi
je 0x46db65
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
lea edx, [esp + 0xd4]
push edx
push 0
push 0x113f
push ecx
mov dword [esp + 0xe4], 0x18
mov dword [esp + 0xe8], edi
mov dword [esp + 0xf0], 0xf000
mov dword [esp + 0xec], 0x2000
call dword [sym.imp.USER32.dll_SendMessageW]
inc dword [esp + 0x48]
lea eax, [esi - 0x10]
mov dword [esp + 0x58], edi
mov byte [esp + 0x360], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46db91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
inc ecx
sar eax, 3
mov dword [esp + 0x14], ecx
cmp ecx, eax
jb 0x46d950
lea eax, [esp + 0x2c]
call fcn.0046c280
xor ebx, ebx
cmp dword [esp + 0x48], ebx
je 0x46dbcc
jmp 0x46dc58
mov eax, dword [eax]
jmp 0x46dae2
xor ebx, ebx
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x7c]
mov ecx, dword [edi]
add esi, 4
push ecx
mov edx, esi
call fcn.0046e5a0
test eax, eax
je 0x46dc58
mov ecx, dword [esi]
mov edx, dword [edi]
xor eax, eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xc0], eax
lea eax, [esp + 0x9c]
push eax
push ebx
push 0x113f
push ecx
mov dword [esp + 0xac], 0x50
mov dword [esp + 0xb0], edx
mov dword [esp + 0xcc], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0x360], 5
mov eax, dword [0x4e47f8]
cmp eax, ebx
je 0x46dc77
cmp dword [esp + 0x74], 1
jne 0x46dc77
mov edx, dword [esp + 0x70]
push edx
call eax
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x46dc8a
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x360], 4
call fcn.0040db60
test al, al
je 0x46dcc6
cmp dword [esp + 0x54], ebx
je 0x46dcc6
mov eax, dword [0x4e66e8]
cmp eax, ebx
jne 0x46dcb4
call fcn.0040dc80
mov dword [0x4e66e8], eax
cmp dword [eax + 4], ebx
je 0x46dcc6
mov eax, dword [0x4e4790]
cmp eax, ebx
je 0x46dcc6
push ebx
push ebx
call eax
mov byte [esp + 0x360], 1
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46dcee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x46dd0c
mov edi, dword [esp + 0x3c]
call fcn.00469590
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00480ff0
add esp, 4
mov edx, dword [esp + 0x2c]
push edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00480ff0
add esp, 4
mov eax, dword [esp + 0x94]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
mov ecx, dword [esp + 0x358]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret