Function at 0x409d70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5279bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x81c
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi], 0x5454f4
mov dword [esi + 4], ebx
mov dword [esp + 0x20], esi
mov dword [esi + 8], ebx
mov dword [esp + 0x834], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
lea eax, [esp + 0x13]
lea ecx, [esi + 0x20]
push eax
mov byte [esp + 0x838], 6
call fcn.0040e560
lea edx, [esp + 0x13]
lea ecx, [esi + 0x24]
push edx
mov byte [esp + 0x838], 9
call fcn.0040e670
lea eax, [esp + 0x13]
lea ecx, [esi + 0x28]
push eax
mov byte [esp + 0x838], 0xc
call fcn.0050e020
lea ebp, [esi + 0x3c]
mov byte [esi + 0x34], bl
mov edi, ebp
mov byte [esi + 0x35], bl
mov byte [esi + 0x37], bl
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x13]
mov byte [esp + 0x834], 0xf
push ecx
mov ecx, edi
call fcn.0050e020
push 8
mov byte [esp + 0x838], 0x11
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
lea edx, [eax + 8]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], edx
add esp, 4
mov byte [eax], bl
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
lea ecx, [esi + 0x6c]
mov byte [esp + 0x834], 0x14
mov dword [esi + 0x68], ebx
call fcn.0050b540
mov byte [esp + 0x834], 0x15
mov dword [esi], 0x545490
mov byte [esi + 0x38], bl
mov eax, dword [0x57f188]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, dword [eax]
push 0x575d08
push eax
call dword [edx + 0x14]
cmp eax, ebx
jne 0x409e87
xor eax, eax
jmp 0x409e90
push eax
call fcn.004c2b30
add esp, 4
lea eax, [eax + eax*4]
lea ecx, [esp + 0x2c]
push ecx
push 0x800
lea eax, [eax + eax*4]
mov dword [esi + 0x4c], ebx
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x48], eax
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x2c]
lea edx, [esp + ecx + 0x2c]
mov ecx, ebp
push edx
push eax
call fcn.00405c70
mov ecx, dword [ebp]
mov eax, dword [ebp + 4]
cmp ecx, eax
jne 0x409eff
mov edi, 0x575fe4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, 0x575fe4
push ecx
push 0x575fe4
mov ecx, ebp
call fcn.00405c70
jmp 0x409f19
mov edx, dword [ebp + 4]
mov edi, dword [ebp]
sub edx, edi
mov eax, edi
cmp byte [edx + eax - 1], 0x5c
je 0x409f19
push 0x5c
mov ecx, ebp
call fcn.00406600
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x5c], 0x22b9
mov eax, dword [0x57f188]
push 0x10030001
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push eax
lea ecx, [esi + 8]
call fcn.00405110
mov eax, dword [0x57f188]
push 0x10040001
push eax
mov edx, dword [eax]
call dword [edx + 0xc]
mov edi, dword [esi + 0xc]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x409f66
mov ecx, dword [eax]
push 0x7fffffff
push 1
push eax
call dword [ecx]
cmp edi, ebx
je 0x409f77
mov edx, dword [edi]
push 0x7fffffff
push 1
push edi
call dword [edx + 4]
mov eax, dword [0x57f188]
push 0x10060001
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edi, dword [esi + 0x10]
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x409f9d
mov edx, dword [eax]
push 0x7fffffff
push 1
push eax
call dword [edx]
cmp edi, ebx
je 0x409fae
mov eax, dword [edi]
push 0x7fffffff
push 1
push edi
call dword [eax + 4]
mov eax, dword [0x57f188]
push 0x10060003
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edi, dword [esi + 0x14]
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x409fd4
mov edx, dword [eax]
push 0x7fffffff
push 1
push eax
call dword [edx]
cmp edi, ebx
je 0x409fe5
mov eax, dword [edi]
push 0x7fffffff
push 1
push edi
call dword [eax + 4]
mov eax, dword [0x57f188]
push 0x10060004
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edi, dword [esi + 0x18]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x40a00b
mov edx, dword [eax]
push 0x7fffffff
push 1
push eax
call dword [edx]
cmp edi, ebx
je 0x40a01c
mov eax, dword [edi]
push 0x7fffffff
push 1
push edi
call dword [eax + 4]
mov eax, dword [esi + 0xc]
lea edi, [esi + 0x68]
push eax
lea ecx, [edi + 4]
call fcn.00405110
mov ecx, edi
call fcn.0040a210
push 0x545380
mov ecx, edi
call fcn.0040a1e0
mov eax, dword [0x57f188]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x18]
xor ebp, ebp
cmp eax, ebx
jle 0x40a114
mov eax, dword [esp + 0x14]
push ebx
push 0x576100
push 0x576030
mov ecx, dword [eax + ebp*4]
push ebx
push ecx
call sub.msvcrt.dll___RTDynamicCast
add esp, 0x14
cmp eax, ebx
je 0x40a107
mov dword [esp + 0x1c], eax
mov edx, dword [eax]
push 0x7fffffff
push 1
push eax
call dword [edx]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
lea edi, [esi + 0x28]
cmp eax, ecx
mov byte [esp + 0x834], 0x16
je 0x40a0d4
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x834], 0x17
je 0x40a0ce
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.0040f7f0
add dword [edi + 4], 4
jmp 0x40a0ea
push 1
lea edx, [esp + 0x17]
push 1
lea ecx, [esp + 0x24]
push edx
push ecx
push eax
mov ecx, edi
call fcn.0040e6d0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x834], 0x15
cmp eax, ebx
je 0x40a107
mov edx, dword [eax]
push 0x7fffffff
push 1
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x40a069
mov eax, dword [0x57f188]
push 0x100f0002
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edi, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esi + 0x1c], eax
je 0x40a13a
mov edx, dword [eax]
push 0x7fffffff
push 1
push eax
call dword [edx]
cmp edi, ebx
je 0x40a14b
mov eax, dword [edi]
push 0x7fffffff
push 1
push edi
call dword [eax + 4]
mov eax, dword [0x57f188]
push 0x10050002
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edi, eax
mov ebp, 0x32
push edi
mov dword [esp + 0x18], ebp
mov edx, dword [edi]
call dword [edx + 0x30]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [edi]
push edi
mov dword [esp + 0x18], ebp
call dword [eax + 0x34]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [0x57f188]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, dword [eax]
push 0x575ce8
push eax
call dword [edx + 0x14]
cmp eax, ebx
jne 0x40a1ad
or eax, 0xffffffff
jmp 0x40a1b6
push eax
call fcn.004c2b30
add esp, 4
mov ecx, dword [esp + 0x82c]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x828
ret