Function at 0x587960
Capabilities:
Get common file path

Disassembly:
sub esp, 0x434
mov eax, dword [0x61de38]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x587c23
mov ebx, dword [esp + 0x448]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x587990
sub ecx, edx
cmp ecx, 1
jbe 0x587c15
mov esi, dword [esp + 0x44c]
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5879b0
sub ecx, edx
cmp ecx, 1
jbe 0x587c15
mov eax, dword [esp + 0x454]
mov dword [edi + 0x118f8], eax
mov eax, dword [edi + 0x110ec]
add eax, 0x408
mov dword [edi + 0x118f4], 0x590190
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x29
lea eax, [edi + 0x14]
push 0x5ec538
push eax
call fcn.0055e7e0
mov ecx, dword [edi + 0x110ec]
add esp, 0xc
nop dword [eax]
mov al, byte [ebx]
lea ebx, [ebx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x587a10
mov ecx, dword [edi + 0x110ec]
add ecx, 0x200
nop word [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x587a30
mov ecx, dword [edi + 0x110ec]
mov eax, dword [edi + 0x10]
push 0x104
mov dword [ecx + 0x404], eax
call fcn.0041a8fe
add esp, 4
mov edx, eax
mov ecx, edi
mov dword [esp + 0x14], edx
push edx
call fcn.00587dc0
lea eax, [edi + 0xb70]
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], eax
lea ecx, [edi + 0x12a8]
mov dword [esp + 0x30], ecx
lea eax, [edi + 0x968]
lea ecx, [edi + 0x760]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ecx
lea eax, [edi + 0x65c]
lea ecx, [edi + 0x864]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
lea eax, [edi + 0x110f0]
mov ecx, edi
mov dword [esp + 0x34], eax
call fcn.00587d60
cmp dword [edi + 0x116f0], 0
lea ebp, [edi + 0x112f0]
lea esi, [edi + 0x114f0]
mov ecx, ebp
jne 0x587b27
lea edx, [esp + 0x38]
call fcn.00404230
push eax
lea edx, [esp + 0x23c]
mov ecx, esi
call fcn.00404230
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov ecx, dword [edi + 0x110ec]
lea ebx, [edi + 0x218]
mov dword [ecx + 0x400], eax
lea eax, [esp + 0x18]
push dword [edi + 0x214]
mov ecx, ebx
sub esp, 8
push eax
sub esp, 8
lea eax, [edi + 0x110f0]
push eax
push dword [edi + 0x10]
call fcn.0058a550
mov ecx, eax
jmp 0x587b7b
lea edx, [esp + 0x238]
call fcn.00404230
push eax
lea edx, [esp + 0x3c]
mov ecx, esi
call fcn.00404230
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov ecx, dword [edi + 0x110ec]
lea ebx, [edi + 0x218]
sub esp, 0xc
mov dword [ecx + 0x400], eax
lea eax, [esp + 0x24]
push eax
sub esp, 8
push esi
push ebp
push ecx
mov ecx, ebx
call fcn.0058a420
mov ecx, eax
mov eax, dword [edi + 0x110ec]
mov dword [eax + 0x400], ecx
push 1
test ecx, ecx
je 0x587b91
push dword [edi + 0x118f8]
mov eax, dword [edi + 0x118f4]
call eax
jmp 0x587c02
push 0
push 0x5e3710
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x5e3748
push edi
mov esi, eax
call fcn.00587fd0
add esp, 8
cmp esi, 1
jne 0x587c0e
lea esi, [edi + 0x114f0]
nop dword [eax + eax]
cmp dword [edi + 0x116f0], 0
lea eax, [esp + 0x18]
jne 0x587bed
push dword [edi + 0x214]
mov ecx, ebx
sub esp, 8
push eax
sub esp, 8
lea eax, [edi + 0x110f0]
push eax
push dword [edi + 0x10]
call fcn.0058a550
jmp 0x587bfe
sub esp, 0xc
push eax
sub esp, 8
push esi
push ebp
push ecx
mov ecx, ebx
call fcn.0058a420
test eax, eax
je 0x587bc0
push dword [esp + 0x14]
call fcn.0041a8f9
add esp, 4
mov eax, 1
jmp 0x587c25
push str.id_or_password_is_too_short.
push edi
call fcn.00587fd0
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055c6fa
add esp, 0x434
ret 0x18