Function at 0x402ef0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x884
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
push 0
call edi
cmp esi, 0x12e8a06
jg 0x402f18
inc esi
cmp esi, 0x2187f5
jl 0x402f03
mov dword [ebp - 0x5c], 0x79f4d4d0
mov dword [ebp - 0x54], 0x1a73c5c4
mov dword [ebp - 0x64], 0x2cf3e6eb
mov dword [ebp - 0x28], 0x45643c9f
mov dword [ebp - 0x38], 0x7849c97b
mov dword [ebp - 0x6c], 0x1164ad9f
mov dword [ebp - 0xc], 0x65c8bb02
mov dword [ebp - 0x50], 0x5ebd1bf1
mov dword [ebp - 0x84], 0x4829b15f
mov dword [ebp - 0x3c], 0x44a0b1b8
mov dword [ebp - 0x68], 0x1a68c519
mov dword [ebp - 0x48], 0x7f67fd83
mov dword [ebp - 0x10], 0x5c46969d
mov dword [ebp - 0x1c], 0x4fe0fb
mov dword [ebp - 0x2c], 0x1b5a048
mov dword [ebp - 0x40], 0x96c51cf
mov dword [ebp - 0x70], 0x434afd87
mov dword [ebp - 0x14], 0x78ed3bde
mov dword [ebp - 0x4c], 0x3b86f317
mov dword [ebp - 0x74], 0x247d35dd
mov dword [ebp - 8], 0x2cc909f9
mov dword [ebp - 0x60], 0x66e04314
mov dword [ebp - 0x7c], 0x1d858c58
mov dword [ebp - 4], 0x3b9da37c
mov dword [ebp - 0x78], 0x64f554a4
mov dword [ebp - 0x34], 0xf43e686
mov dword [ebp - 0x58], 0x765d061
mov dword [ebp - 0x20], 0x28d9417
mov dword [ebp - 0x44], 0x17ff0cc5
mov dword [ebp - 0x80], 0x1b5cdd7c
mov dword [ebp - 0x18], 0x2a8c0156
mov dword [ebp - 0x24], 0x33e7d972
mov dword [ebp - 0x30], 0x2f069356
sub dword [ebp - 0x5c], 0x35aa4d05
mov eax, 0x653b8f0d
mul dword [ebp - 0x5c]
mov eax, dword [ebp - 0x5c]
mov eax, 0xbacc586
mul dword [ebp - 0x54]
mov eax, dword [ebp - 0x54]
sub dword [ebp - 0x64], 0x4bc7588f
add dword [ebp - 0x5c], 0x26cf440d
add dword [ebp - 0x38], 0x2b400892
sub dword [ebp - 0x5c], 0x1227b8f3
sub dword [ebp - 0x38], 0x4793bee6
mov eax, 0x24c4abd6
mul dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov eax, 0x55bb5578
mul dword [ebp - 0x54]
mov eax, dword [ebp - 0x54]
add dword [ebp - 0x3c], 0x28d4ec9b
add dword [ebp - 0x6c], 0x1d0bb871
add dword [ebp - 0x50], 0x5ba5f0d4
mov eax, 0x4ae90c8
mul dword [ebp - 0x84]
mov eax, dword [ebp - 0x84]
mov eax, 0x53e60be
mul dword [ebp - 0x84]
mov eax, dword [ebp - 0x84]
mov eax, 0x42d76359
mul dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add dword [ebp - 0xc], 0x11463e84
mov eax, 0x3a001853
mul dword [ebp - 0x6c]
mov eax, dword [ebp - 0x6c]
mov eax, 0x4bb2c743
mul dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
mov eax, 0x6f873973
mul dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0x54], 0x34a36c0
sub dword [ebp - 0x3c], 0x5e53a60f
sub dword [ebp - 0x38], 0x69621a5b
mov eax, 0x4670fec3
mul dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
mov eax, 0x4c8b19d6
mul dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x28], 0x46a2270d
sub dword [ebp - 0x38], 0x3237b345
sub dword [ebp - 0x54], 0x27873fd2
add dword [ebp - 0x5c], 0x6a3dccbb
add dword [ebp - 0x68], 0x4382b430
sub dword [ebp - 0x64], 0x38e0bb52
add dword [ebp - 0x10], 0x31420cbe
sub dword [ebp - 0x50], 0x4b6bca49
mov eax, 0x488e5e1a
mul dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
add dword [ebp - 0x28], 0x550e78d0
mov eax, 0x1b9983ed
mul dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0x10], 0x7cd59ead
mov eax, 0x6dfb50cb
mul dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov eax, 0x5d88cf55
mul dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov eax, 0x52d58544
mul dword [ebp - 0x54]
mov eax, dword [ebp - 0x54]
mov eax, 0xf8606f5
mul dword [ebp - 0x70]
mov eax, dword [ebp - 0x70]
add dword [ebp - 0x14], 0x54247810
sub dword [ebp - 0x84], 0x6af48725
mov eax, 0x60fd58aa
mul dword [ebp - 0x64]
mov eax, dword [ebp - 0x64]
mov eax, 0x27bc6be9
mul dword [ebp - 0x74]
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x3c], 0x2e7da576
mov eax, 0x22c17a1d
mul dword [ebp - 0x6c]
mov eax, dword [ebp - 0x6c]
add dword [ebp - 0x54], 0x7d29240f
sub dword [ebp - 0x3c], 0x48bc3b63
sub dword [ebp - 0xc], 0x70e577f5
sub dword [ebp - 0xc], 0x4449ec74
mov eax, 0x2d5b9095
mul dword [ebp - 0x7c]
mov eax, dword [ebp - 0x7c]
sub dword [ebp - 0x20], 0x3e35d27f
sub dword [ebp - 0x48], 0x335d5fe
add dword [ebp - 8], 0x42ab54d8
add dword [ebp - 0x38], 0x68d5970
add dword [ebp - 0x50], 0x7415923b
add dword [ebp - 0x10], 0x62063c8c
mov eax, 0xc160130
mul dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov eax, 0x45cd4597
mul dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
sub dword [ebp - 0x44], 0x2d6c6663
sub dword [ebp - 0x68], 0x22129c35
mov eax, 0x19addd2
mul dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, 0x2d8da6ae
mul dword [ebp - 4]
mov eax, dword [ebp - 4]
sub dword [ebp - 0x54], 0x5c2abeb2
mov eax, 0x1e90af4b
mul dword [ebp - 0x64]
mov eax, dword [ebp - 0x64]
mov eax, 0x7a94a63e
mul dword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
xor eax, eax
cmp eax, 0x166c480
jg 0x403267
inc eax
cmp eax, 0x37e3fd1
jl 0x403258
mov eax, dword [0x44bdec]
mov dword [0x4579a4], eax
call fcn.00402c30
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, 0x2ec37
cmp dword [0x4579a4], 0x51f
jne 0x403298
lea ecx, [ebp - 0x884]
push ecx
push 0
call esi
sub edi, 1
jne 0x403281
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10