Function at 0x410200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4131fd
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x87f03c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x410239
mov eax, dword [eax]
push 0
push esi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x41031f
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
push 0x40
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
movups xmmword [ebp - 0x28], xmm0
call fcn.00403290
movups xmm0, xmmword [str.Fatal:_Could_not_get_the_full_library_file_name_n]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x30
mov dword [ebp - 0x14], 0x3f
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x87ad34]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [0x87ad44]
movups xmmword [eax + 0x20], xmm0
mov byte [eax + 0x30], 0
cmp dword [esi + 0x238], 0
mov dword [ebp - 4], 0
je 0x4102e7
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call fcn.0040a180
push edx
push eax
call fcn.0040ad50
mov ecx, dword [esi + 0x238]
lea eax, [ebp - 0x28]
add esp, 0x10
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
push eax
call fcn.00403340
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x410526
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41051c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41051c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
inc eax
mov dword [esi + 0x20c], eax
lea eax, [ebp - 0x180]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x410422
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x30
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
movups xmmword [ebp - 0x28], xmm0
call fcn.00403290
movups xmm0, xmmword [str.Fatal:_Could_not_find_the_library_file_n]
mov edx, eax
mov dword [ebp - 0x18], 0x27
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], 0x2f
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x87ad68]
movups xmmword [edx + 0x10], xmm0
mov ecx, dword [0x87ad78]
mov dword [edx + 0x20], ecx
mov ax, word [0x87ad7c]
mov word [edx + 0x24], ax
mov al, byte [0x87ad7e]
mov byte [edx + 0x26], al
mov byte [edx + 0x27], 0
cmp dword [esi + 0x238], 0
mov dword [ebp - 4], 1
je 0x4103ea
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call fcn.0040a180
push edx
push eax
call fcn.0040ad50
mov ecx, dword [esi + 0x238]
lea eax, [ebp - 0x28]
add esp, 0x10
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
push eax
call fcn.00403340
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x410526
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41051c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41051c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esi + 0x105]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x41052a
xorps xmm0, xmm0
mov dword [ebp - 0x30], eax
push 0x30
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
movups xmmword [ebp - 0x40], xmm0
call fcn.00403290
movups xmm0, xmmword [str.Fatal:_Could_not_get_the_current_directory_n]
mov ecx, eax
mov dword [ebp - 0x30], 0x2b
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x2c], 0x2f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x87ad90]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x87ada0]
movq qword [ecx + 0x20], xmm0
mov ax, word [0x87ada8]
mov word [ecx + 0x28], ax
mov al, byte [0x87adaa]
mov byte [ecx + 0x2a], al
mov byte [ecx + 0x2b], 0
cmp dword [esi + 0x238], 0
mov dword [ebp - 4], 2
je 0x4104f0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push 0
call fcn.0040a180
push edx
push eax
call fcn.0040ad50
mov ecx, dword [esi + 0x238]
lea eax, [ebp - 0x40]
add esp, 0x10
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push dword [ebp - 0x30]
push eax
call fcn.00403340
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x410526
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41051c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41051c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
xor al, al
jmp 0x410533
inc eax
mov dword [esi + 0x210], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e6c4
mov esp, ebp
pop ebp
ret 4