Function at 0x497870
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ec3a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x90]
mov eax, dword [eax]
mov esi, dword [esp + 0x88]
mov ecx, dword [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0x9c]
push edx
mov edx, dword [esp + 0x9c]
push ecx
push edx
push 0x4efd50
push 0x4efd50
push eax
push esi
push 0xe
mov ecx, ebx
call fcn.0043d880
xor ebp, ebp
lea ecx, [ebx + 0x40]
mov dword [esp + 0x80], ebp
mov dword [ebx], 0x4fa050
call fcn.00449780
push 0x51d5ec
mov dword [esp + 0x48], 0x51d5ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0xb0]
mov dword [eax], ebx
mov eax, dword [esp + 0xa8]
mov edi, dword [esi + 0x2c]
and eax, 0xfffff000
push 0x80
mov byte [esp + 0x84], 2
mov dword [esp + 0xa0], edi
mov dword [esp + 0x30], eax
call fcn.004cc845
add esp, 4
mov dword [esp + 0x90], eax
cmp eax, ebp
mov byte [esp + 0x80], 3
je 0x497959
lea ecx, [ebx + 0x34]
push ecx
mov ecx, eax
call fcn.004a9550
mov ebp, eax
mov dword [ebx + 0x1c], ebp
mov edx, dword [edi + 0x48]
lea eax, [ebx + 8]
push eax
lea ecx, [ebp + 0x4c]
mov byte [esp + 0x84], 2
mov dword [ebp + 0x48], edx
call fcn.00456690
mov edx, dword [esp + 0xa8]
mov eax, edx
mov dword [ebp + 0x50], esi
and eax, 0x8000
xor esi, esi
or eax, esi
mov ecx, 0x40000000
je 0x4979a4
mov dword [esp + 0xa0], 0x48000000
mov ecx, dword [esp + 0xa0]
test dl, 0x10
jne 0x4979af
or ecx, 0x10000000
test dl, 4
je 0x4979ba
or ecx, 0x200
test dl, 0x40
je 0x4979c5
or ecx, 0x800000
or ecx, 0x4000
test dl, dl
mov dword [esp + 0xa0], ecx
jns 0x4979e3
or ecx, 0x80
mov dword [esp + 0xa0], ecx
mov edi, dword [ebx + 0x2c]
mov esi, dword [ebx + 0x28]
mov eax, ecx
shr eax, 7
and al, 1
mov byte [esp + 0x28], al
mov eax, dword [ebx + 0x24]
add edi, eax
mov eax, dword [ebx + 0x20]
add esi, eax
xor eax, eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax]
lea edx, [esp + 0x90]
push edx
mov dword [esp + 0x94], ecx
call fcn.00443850
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0xa0]
mov edx, dword [ebp]
add esp, 4
push eax
mov eax, dword [ecx + 0x18]
push eax
mov eax, dword [ebx + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebx + 0x24]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xb8]
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edi
push eax
mov ecx, ebp
call dword [edx + 0x80]
mov ecx, dword [esp + 0x9c]
call fcn.004a38a0
xor esi, esi
cmp eax, esi
je 0x497a98
cmp eax, 0xffffffff
je 0x497a98
mov ecx, dword [ebp + 0x18]
push 1
push eax
push 0x30
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp + 0x18]
push 1
push edx
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
lea eax, [esp + 0x58]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov ecx, dword [ebp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x48]
push edx
push esi
push 0x130a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, byte [esp + 0x28]
mov edx, dword [esp + 0x54]
test al, al
mov eax, dword [esp + 0x60]
jne 0x497aff
mov ecx, dword [esp + 0x48]
inc edx
jmp 0x497b04
mov ecx, dword [esp + 0x50]
inc ecx
sub eax, ecx
sub eax, 2
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x64]
sub eax, edx
sub eax, 2
push 0x48
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x90], eax
call fcn.004cc845
mov edi, eax
add esp, 4
mov dword [esp + 0xa0], edi
cmp edi, esi
mov byte [esp + 0x80], 4
je 0x497b5d
mov ecx, edi
call fcn.004a3850
mov dword [edi], fcn.004a3b30
mov dword [esp + 0xb0], edi
jmp 0x497b66
mov dword [esp + 0xb0], esi
mov edi, esi
mov eax, dword [esp + 0x9c]
mov dword [ebp + 0x5c], edi
mov ecx, dword [eax + 0x18]
mov edx, dword [edi]
push esi
push ecx
mov ecx, edi
mov byte [esp + 0x88], 2
call dword [edx + 0x80]
push edi
mov ecx, ebp
call fcn.004a8e20
lea edx, [esp + 0x90]
push edx
call fcn.00443850
mov edi, dword [esp + 0x94]
push 2
mov dword [esp + 0x48], edi
call fcn.00449130
add esp, 8
cmp eax, esi
mov dword [esp + 0x20], eax
je 0x497bbc
mov word [eax], si
cmp word [edi], si
mov byte [esp + 0x80], 5
mov dword [esp + 0xa0], esi
je 0x497f0c
jmp 0x497be0
xor esi, esi
jmp 0x497be0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0x24]
lea ecx, [esp + 0xa0]
lea edi, [esp + 0x9c]
call fcn.00455e70
push 2
call fcn.00449130
add esp, 0x10
cmp eax, esi
mov dword [esp + 0x3c], eax
je 0x497c1e
mov word [eax], si
push 2
call fcn.00449130
add esp, 4
cmp eax, esi
mov dword [esp + 0x38], eax
je 0x497c33
mov word [eax], si
push 2
call fcn.00449130
add esp, 4
cmp eax, esi
mov dword [esp + 0x34], eax
je 0x497c48
mov word [eax], si
push 2
call fcn.00449130
add esp, 4
cmp eax, esi
mov dword [esp + 0x30], eax
je 0x497c5d
mov word [eax], si
push 0x4fb5d4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
push eax
call fcn.00449130
mov ecx, esi
mov edx, ecx
mov ebx, eax
shr ecx, 2
mov esi, 0x4fb5d4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add esp, 4
mov edi, ebx
mov esi, dword [esp + 0x98]
test esi, esi
mov byte [esp + 0x80], 0xa
je 0x497cff
test ebx, ebx
mov dword [esp + 0xa4], 0
je 0x497cc3
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0xa4], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, dword [esp + 0xa4]
inc esi
add eax, esi
shl eax, 1
push ebx
call fcn.00449190
mov edx, dword [esp + 0x9c]
mov edi, eax
mov eax, dword [esp + 0xa8]
lea ecx, [esi + esi]
push ecx
push edx
lea ecx, [edi + eax*2]
push ecx
call fcn.004b3b10
add esp, 0x10
xor ebx, ebx
test edi, edi
je 0x497d0e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push 0x4fae10
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
inc esi
lea eax, [esi + ebx]
shl eax, 1
push edi
call fcn.00449190
lea edx, [esi + esi]
mov edi, eax
push edx
lea eax, [edi + ebx*2]
push 0x4fae10
push eax
mov dword [esp + 0xb4], edi
call fcn.004b3b10
mov esi, dword [esp + 0xa4]
add esp, 0x10
test esi, esi
je 0x497d95
xor ebx, ebx
test edi, edi
je 0x497d5f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
inc esi
lea eax, [esi + ebx]
shl eax, 1
push edi
call fcn.00449190
mov edx, dword [esp + 0x98]
lea ecx, [esi + esi]
mov edi, eax
push ecx
push edx
lea eax, [edi + ebx*2]
push eax
mov dword [esp + 0xb4], edi
call fcn.004b3b10
add esp, 0x10
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x9c]
push 0
push 0
push 0
push ecx
mov ecx, dword [esp + 0x98]
push edx
add eax, 2
push eax
mov eax, dword [esp + 0x2c]
add eax, 2
push eax
lea eax, [esp + 0xc0]
push eax
push ebx
push ecx
mov ecx, ebx
call fcn.0048d2b0
mov edx, dword [esp + 0x2c]
mov esi, dword [eax + 0x1c]
mov eax, dword [esi + 0x18]
push 0
push edx
push 0
push eax
call fcn.004a3910
add esp, 0x10
mov ecx, ebx
call fcn.004a38a0
test eax, eax
je 0x497e11
cmp eax, 0xffffffff
je 0x497e11
mov ecx, dword [esi + 0x18]
push 1
push eax
push 0x30
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esp + 0x18]
push 0
push esi
push ebx
mov ecx, ebp
call fcn.004a8eb0
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x10]
push 0x40
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esi + 0x18]
push ecx
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0x18]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esp + 0xa0]
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x24]
push 1
push ebx
push edx
push eax
call fcn.0048c0f0
test edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x497e85
mov ecx, dword [0x51d3c8]
add edi, 0xfffffff8
push edi
push 0
push ecx
call esi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x497e9c
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x497eb2
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x497ec9
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x3c]
test eax, eax
mov byte [esp + 0x80], 5
je 0x497ee8
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x90]
inc edx
cmp word [eax], 0
mov dword [esp + 0xa0], edx
jne 0x497bd6
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.004a8fc0
push 0x4fa060
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea edx, [esi + 2]
push edx
call fcn.00449130
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, 0x4fa060
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add esp, 4
mov dword [esp + 0xa0], eax
mov esi, eax
mov edi, dword [ebx + 8]
test edi, edi
mov byte [esp + 0x80], 0xb
je 0x497fc7
test eax, eax
mov dword [esp + 0x90], 0
je 0x497f7f
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x90], eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0xa0]
inc eax
mov dword [esp + 0x9c], eax
add eax, ecx
shl eax, 1
push edx
call fcn.00449190
mov edx, dword [esp + 0x94]
mov esi, eax
mov eax, dword [esp + 0xa0]
lea ecx, [eax + eax]
push ecx
lea eax, [esi + edx*2]
push edi
push eax
call fcn.004b3b10
add esp, 0x10
test esi, esi
mov dword [esp + 0x90], 0
je 0x497fe4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x90], eax
push str..Select
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x90]
mov edi, eax
inc edi
lea eax, [edi + ecx]
shl eax, 1
push esi
call fcn.00449190
mov esi, eax
mov eax, dword [esp + 0x94]
lea edx, [edi + edi]
push edx
lea ecx, [esi + eax*2]
push str..Select
push ecx
mov dword [esp + 0x9c], esi
call fcn.004b3b10
mov edx, dword [ebx + 8]
add esp, 0x10
cmp word [edx], 0
je 0x498040
mov ecx, dword [ebx + 0x30]
push 0x4f24d0
push esi
call fcn.00466e80
mov eax, dword [ebp + 0x18]
push 0
push 0
push 0x1304
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x40]
xor esi, esi
test eax, eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], esi
mov dword [esp + 0x90], ecx
jle 0x498181
jmp 0x498080
mov esi, dword [esp + 0xa0]
nop
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xa0]
push ecx
lea eax, [esp + 0x24]
lea ecx, [esp + 0xa0]
lea edi, [esp + 0x9c]
call fcn.00455e70
push 2
call fcn.00449130
xor edi, edi
add esp, 0x10
cmp eax, edi
mov dword [esp + 0x9c], eax
je 0x4980c3
mov word [eax], di
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x88]
push 1
push edi
lea edx, [esp + 0xa4]
push edx
push eax
mov byte [esp + 0x90], 0xc
call fcn.00452ca0
mov edx, dword [ebp + 0x18]
lea ecx, [esp + 0x68]
push ecx
push esi
push 0x130a
push edx
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0xb0]
add esi, 0xbb8
push esi
mov esi, dword [esp + 0xa0]
lea eax, [esp + 0x6c]
push eax
push esi
push ebp
call fcn.004a8e40
mov ecx, dword [ebx + 0x1c]
mov edi, dword [esp + 0xa0]
mov edx, dword [ecx + 0x18]
push 1
push esi
push edi
push edx
mov ecx, ebx
call fcn.0048c170
test esi, esi
mov byte [esp + 0x80], 0xb
je 0x49816a
mov eax, dword [0x51d3c8]
add esi, 0xfffffff8
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0xa4]
inc edi
cmp edi, eax
mov dword [esp + 0xa0], edi
jl 0x498078
mov ecx, dword [esp + 0xb0]
mov edx, dword [ecx + 0x18]
push 0
push 1
push 0x401
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4981b8
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4981d3
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
add esp, 0x74
ret 0x2c