Function at 0x102c3c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov dword [ebp - 4], 0x17
mov dword [ebp - 0x24], 0x317d
mov eax, 8
imul ecx, eax, 0x13
mov edx, dword [ebp - 4]
xor eax, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10585e4]
cmp edx, dword [ebp - 0x2c]
ja 0x102c45d
jb 0x102c409
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10585e0]
cmp ecx, dword [ebp - 0x30]
ja 0x102c45d
mov edx, dword [0x10585d0]
xor eax, eax
mov ecx, 8
imul ecx, ecx, 0xf
mov dword [ecx + 0x10585e0], edx
mov dword [ecx + 0x10585e4], eax
mov edx, dword [ebp - 4]
mov eax, dword [0x10585d0]
lea ecx, [eax + edx + 6]
mov dword [0x10585d4], ecx
mov edx, dword [ebp - 4]
add edx, 0xd2e1
sub edx, dword [0x10585d0]
mov dword [0x10585d0], edx
mov eax, dword [ebp - 4]
sub eax, 0x10
sub eax, dword [0x10585d0]
mov dword [0x10585d4], eax
mov ecx, dword [ebp - 4]
add ecx, 0x85f7e
mov byte [0x10585c0], cl
mov edx, dword [0x10585c4]
sub edx, 2
sub edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, 8
imul ecx, eax, 0x13
movzx eax, byte [0x10585c0]
cdq
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10585e4]
cmp eax, dword [ebp - 0x34]
ja 0x102c511
jb 0x102c4b2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10585e0]
cmp edx, dword [ebp - 0x38]
ja 0x102c511
mov eax, dword [0x10585c4]
xor ecx, ecx
mov edx, 8
imul edx, edx, 0xf
mov dword [edx + 0x10585e0], eax
mov dword [edx + 0x10585e4], ecx
movzx eax, byte [0x10585c0]
mov ecx, dword [0x10585c4]
lea edx, [ecx + eax + 6]
mov dword [0x10585d4], edx
movzx eax, byte [0x10585c0]
add eax, 0xd2e1
sub eax, dword [0x10585c4]
mov dword [0x10585c4], eax
movzx ecx, byte [0x10585c0]
sub ecx, 0x10
sub ecx, dword [0x10585c4]
mov dword [0x10585d4], ecx
mov edx, dword [0x10585cc]
sub edx, 0x3ac3
sub edx, dword [0x10585c4]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov dword [0x10ef8d8], eax
mov ecx, dword [ebp + 8]
add ecx, 0xd2e1
sub ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [0x10585d4]
cmp edx, dword [0x10585c4]
jb 0x102c5b4
movzx eax, byte [0x10585c0]
mov ecx, dword [0x10585c4]
lea edx, [ecx + eax + 6]
mov dword [0x10585d4], edx
mov eax, 8
imul ecx, eax, 7
movzx eax, byte [0x10585c0]
cdq
push edx
push eax
mov edx, dword [ecx + 0x10585e4]
push edx
mov eax, dword [ecx + 0x10585e0]
push eax
call fcn.0100c6c0
mov ecx, 8
imul ecx, ecx, 7
mov dword [ecx + 0x10585e0], eax
mov dword [ecx + 0x10585e4], edx
movzx edx, byte [0x10585c0]
sub edx, 0x3ac3
sub edx, dword [0x10585c4]
mov dword [0x10585d4], edx
mov eax, dword [0x10585c4]
sub eax, 0x44
sub eax, dword [0x10585cc]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [0x10585cc]
sub ecx, 2
sub ecx, dword [0x10585cc]
mov byte [0x10585c0], cl
mov edx, 1
imul eax, edx, 0xa
movzx ecx, byte [eax + 0x1058660]
mov edx, 1
shl edx, 1
movzx eax, byte [edx + 0x1058660]
add ecx, eax
cmp ecx, 0x1b4
jne 0x102c631
mov ecx, dword [0x10585c4]
mov edx, dword [0x10585d4]
lea eax, [edx + ecx - 0x5e]
mov dword [0x10585c4], eax
movzx ecx, byte [0x10585c0]
sub ecx, 0x10
sub ecx, dword [0x10585c4]
mov dword [0x10585d4], ecx
jmp 0x102c66a
mov edx, 1
imul eax, edx, 0
movzx ecx, byte [eax + 0x1058660]
sub ecx, dword [0x10585c4]
movzx edx, byte [0x10585c0]
add ecx, edx
mov dword [0x10585c4], ecx
mov eax, dword [0x10585c4]
sub eax, 0x3ac3
sub eax, dword [0x10585c4]
mov dword [0x10585d4], eax
mov ecx, dword [0x10585cc]
add ecx, 0xd2e1
movzx edx, byte [0x10585c0]
sub ecx, edx
mov byte [0x10585c0], cl
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [0x10585c8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [0x10ef8d8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 8
imul edx, ecx, 0x14
mov eax, dword [edx + 0x10585e0]
mov dword [ebp - 0x40], eax
mov ecx, dword [edx + 0x10585e4]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x40], 3
jne 0x102c6c6
cmp dword [ebp - 0x3c], 0
je 0x102c6c8
jmp 0x102c6df
mov edx, dword [0x10585d4]
sub edx, 2
sub edx, dword [0x10585d0]
mov dword [0x10585cc], edx
jmp 0x102c6f4
mov eax, dword [0x10585cc]
mov ecx, dword [0x10585d0]
lea edx, [ecx + eax - 0x5e]
mov dword [0x10585d4], edx
mov eax, dword [0x10585cc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax - 0x5e]
mov byte [0x10585c0], dl
mov eax, dword [0x10585d4]
cmp eax, dword [0x10585c4]
jb 0x102c77b
movzx ecx, byte [0x10585c0]
mov edx, dword [0x10585c4]
lea eax, [edx + ecx + 6]
mov dword [0x10585d4], eax
mov ecx, 8
imul ecx, ecx, 7
movzx eax, byte [0x10585c0]
cdq
push edx
push eax
mov edx, dword [ecx + 0x10585e4]
push edx
mov eax, dword [ecx + 0x10585e0]
push eax
call fcn.0100c6c0
mov ecx, 8
imul ecx, ecx, 7
mov dword [ecx + 0x10585e0], eax
mov dword [ecx + 0x10585e4], edx
movzx edx, byte [0x10585c0]
sub edx, 0x3ac3
sub edx, dword [0x10585c4]
mov dword [0x10585d4], edx
mov eax, dword [0x10585cc]
sub eax, 0x10
sub eax, dword [0x10585c4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx + 6]
mov dword [0x10585c4], eax
mov ecx, 8
shl ecx, 3
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x10585e0], 0x1ba6
jne 0x102c7e6
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x10585e4], 0
jne 0x102c7e6
mov ecx, 8
imul edx, ecx, 5
mov eax, dword [ebp - 4]
xor ecx, ecx
add eax, dword [edx + 0x10585e0]
adc ecx, dword [edx + 0x10585e4]
mov dword [ebp - 4], eax
mov edx, dword [0x10585c4]
mov dword [ebp - 4], edx
movzx eax, byte [0x10585c0]
mov ecx, dword [0x10585cc]
lea edx, [eax + ecx + 6]
mov dword [0x10585cc], edx
movzx eax, byte [0x10585c0]
mov ecx, dword [0x10585cc]
lea edx, [ecx + eax - 0x27]
mov eax, dword [ebp - 4]
sub eax, edx
mov dword [ebp - 4], eax
mov ecx, dword [0x10585c4]
cmp ecx, dword [ebp - 4]
jb 0x102c879
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 6]
mov dword [0x10585c4], ecx
mov edx, 8
imul eax, edx, 7
mov ecx, dword [ebp + 8]
xor edx, edx
push edx
push ecx
mov ecx, dword [eax + 0x10585e4]
push ecx
mov edx, dword [eax + 0x10585e0]
push edx
call fcn.0100c6c0
mov ecx, 8
imul ecx, ecx, 7
mov dword [ecx + 0x10585e0], eax
mov dword [ecx + 0x10585e4], edx
mov edx, dword [ebp + 8]
sub edx, 0x3ac3
sub edx, dword [ebp - 4]
mov dword [0x10585c4], edx
mov eax, dword [0x10585cc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax - 0x5e]
mov byte [0x10585c0], dl
push 0x1059c50
push 0x646
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [0x10585c4], eax
mov dword [ebp - 8], 0x21
jmp 0x102c8b2
mov eax, dword [ebp - 8]
sub eax, 2
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jle 0x102c93f
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, 8
imul eax, eax, 0xa
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x48]
cmp edx, dword [ecx + 0x10585e0]
jne 0x102c8f0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [eax + 0x10585e4]
jne 0x102c8f0
jmp 0x102c8a9
mov edx, dword [0x10585c4]
sub edx, 2
sub edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
mov esi, dword [edx*8 + 0x10585e0]
sub esi, eax
mov eax, dword [edx*8 + 0x10585e4]
sbb eax, ecx
mov ecx, dword [ebp - 8]
mov dword [ecx*8 + 0x10585e0], esi
mov dword [ecx*8 + 0x10585e4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 6]
mov dword [0x10585c4], ecx
jmp 0x102c8a9
push dword [0x10ef8d8]
mov edx, dword [0x10585cc]
sub edx, 0x10
movzx eax, byte [0x10585c0]
sub edx, eax
mov dword [0x10585cc], edx
mov ecx, dword [ebp + 8]
sub ecx, 0x3ac3
sub ecx, dword [ebp - 4]
mov dword [0x10585c4], ecx
pop esi
add eax, 0xbf
call esi
mov edx, 8
shl edx, 3
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x10585e0], 0x1ba6
jne 0x102c9c1
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x10585e4], 0
jne 0x102c9c1
mov edx, 8
imul eax, edx, 5
mov ecx, dword [ebp - 4]
xor edx, edx
add ecx, dword [eax + 0x10585e0]
adc edx, dword [eax + 0x10585e4]
mov dword [ebp - 4], ecx
mov eax, dword [0x10585c4]
mov dword [ebp - 4], eax
movzx ecx, byte [0x10585c0]
mov edx, dword [0x10585cc]
lea eax, [ecx + edx + 6]
mov dword [0x10585cc], eax
mov ecx, dword [ebp + 8]
sub ecx, 0x10
sub ecx, dword [ebp - 4]
mov dword [0x10585c4], ecx
movzx edx, byte [0x10585c0]
sub edx, 0x44
sub edx, dword [0x10585cc]
add edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, 8
shl eax, 3
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x10585e0], 0x1ba6
jne 0x102ca47
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x10585e4], 0
jne 0x102ca47
mov eax, 8
imul ecx, eax, 5
mov edx, dword [ebp - 4]
xor eax, eax
add edx, dword [ecx + 0x10585e0]
adc eax, dword [ecx + 0x10585e4]
mov dword [ebp - 4], edx
mov ecx, dword [0x10585c4]
mov dword [ebp - 4], ecx
movzx edx, byte [0x10585c0]
mov eax, dword [0x10585cc]
lea ecx, [edx + eax + 6]
mov dword [0x10585cc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [0x10585c4]
lea ecx, [eax + edx - 0x5e]
mov dword [ebp - 4], ecx
mov eax, dword [0x10585cc]
pop esi
mov esp, ebp
pop ebp
ret