Function at 0x1021a7c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x304
mov eax, dword [0x10a09bc]
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], eax
mov dword [ebp - 0x284], 0xc00000e5
call fcn.01043606
push esi
lea ecx, [ebp - 0x244]
call fcn.010206c0
xor ebx, ebx
cmp eax, ebx
lea ecx, [ebp - 0x244]
jl 0x1021ad5
push 0x100273c
call fcn.01020739
cmp eax, ebx
jge 0x1021ae1
lea ecx, [ebp - 0x244]
mov ebx, eax
call fcn.0101dcfd
jmp 0x1021f76
push edi
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0101f4f1
mov ecx, eax
call fcn.0101f312
lea esi, [ebp - 0x29c]
lea edi, [ebp - 0x2dc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x2ac]
movsd dword es:[edi], dword [esi]
call fcn.0101dd07
cmp dword [ebp + 0xc], ebx
jne 0x1021b9a
lea eax, [ebp - 0x20c]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryW
test eax, eax
jne 0x1021b88
call fcn.0104b39a
cmp eax, ebx
lea ecx, [ebp - 0x244]
jl 0x1021b81
mov dword [ebp - 0x28c], 1
mov dword [ebp - 0x288], ebx
call fcn.0101dcfd
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x290], 0x10024d0
call fcn.0101d3f6
mov ebx, dword [ebp - 0x284]
jmp 0x1021f75
mov ebx, eax
jmp 0x1021f70
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x20c]
call fcn.0103f3c6
cmp eax, ebx
jl 0x1021bdb
xor eax, eax
mov dword [ebp - 0x2c4], ebx
lea edi, [ebp - 0x2c0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x2d0], ebx
lea edi, [ebp - 0x2cc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x2c4]
push eax
push 0x2e
push ebx
push ebx
lea eax, [ebp + 0x18]
push eax
push 2
call fcn.0103f47a
cmp eax, ebx
jge 0x1021be2
mov ebx, eax
jmp 0x1021f6a
lea ecx, [ebp - 0x274]
call fcn.01043606
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x274]
call fcn.01020698
cmp eax, ebx
lea ecx, [ebp - 0x274]
jge 0x1021c10
mov ebx, eax
jmp 0x1021f65
push 0x1002730
call fcn.01020739
cmp eax, ebx
jge 0x1021c25
mov ebx, eax
jmp 0x1021f5f
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0101f4f1
mov ecx, eax
call fcn.0101f312
lea esi, [ebp - 0x29c]
lea edi, [ebp - 0x28c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x2ac]
movsd dword es:[edi], dword [esi]
call fcn.0101dd07
lea ecx, [ebp - 0x228]
call fcn.01043606
push 0x1002700
lea ecx, [ebp - 0x228]
call fcn.010206c0
cmp eax, ebx
lea ecx, [ebp - 0x228]
jl 0x1021d83
lea eax, [ebp - 0x28c]
push eax
call fcn.01020710
cmp eax, ebx
lea ecx, [ebp - 0x228]
jl 0x1021d83
mov edi, 0x10026f8
push edi
call fcn.01020739
cmp eax, ebx
lea ecx, [ebp - 0x228]
jl 0x1021d83
push 0x10026e0
call fcn.01020739
cmp eax, ebx
lea ecx, [ebp - 0x228]
jl 0x1021d83
lea eax, [ebp + 0xc]
push eax
call fcn.01020710
cmp eax, ebx
lea ecx, [ebp - 0x228]
jl 0x1021d83
push 0x10026a8
call fcn.01020739
cmp eax, ebx
lea ecx, [ebp - 0x228]
jl 0x1021d83
lea eax, [ebp + 0x18]
push eax
call fcn.01020710
cmp eax, ebx
lea ecx, [ebp - 0x228]
jl 0x1021d83
mov esi, 0x10026a4
push esi
call fcn.01020739
cmp eax, ebx
lea ecx, [ebp - 0x228]
jl 0x1021d83
lea eax, [ebp + 0x18]
push eax
call fcn.01020710
cmp eax, ebx
lea ecx, [ebp - 0x228]
jl 0x1021d83
push edi
call fcn.01020739
cmp eax, ebx
lea ecx, [ebp - 0x228]
jl 0x1021d83
lea eax, [ebp + 0x18]
push eax
call fcn.01020710
cmp eax, ebx
lea ecx, [ebp - 0x228]
jl 0x1021d83
push esi
call fcn.01020739
cmp eax, ebx
lea ecx, [ebp - 0x228]
jl 0x1021d83
lea eax, [ebp + 0x18]
push eax
call fcn.01020710
cmp eax, ebx
lea ecx, [ebp - 0x228]
jge 0x1021d8a
mov ebx, eax
jmp 0x1021f5a
push edi
call fcn.01020739
cmp eax, ebx
jge 0x1021d9b
mov ebx, eax
jmp 0x1021f54
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x248], ebx
call fcn.0101f4f1
mov esi, dword [eax]
mov edx, dword [esi + 8]
shl edx, 1
lea ecx, [eax + 4]
mov dword [ecx], edx
mov dword [eax + 8], edx
mov edx, dword [esi]
mov dword [eax + 0xc], edx
lea edx, [ebp - 0x250]
call fcn.0103ff8e
lea ecx, [ebp - 0x2ac]
mov esi, eax
call fcn.0101dd07
cmp esi, ebx
jge 0x1021df6
mov ebx, esi
jmp 0x1021f49
test byte [0x10a3e20], 1
jne 0x1021e1d
or dword [0x10a3e20], 1
push 0x109de93
mov dword [0x10a3e18], ebx
mov dword [0x10a3e1c], ebx
call fcn.0103c3eb
pop ecx
push ebx
mov edx, 0x10a3e18
xor ecx, ecx
call fcn.01057faa
cmp eax, ebx
jge 0x1021e35
mov ebx, eax
jmp 0x1021f49
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x2dc]
push eax
mov dword [ebp - 0x2b8], 3
mov dword [ebp - 0x2b4], 0x1002698
mov dword [ebp - 0x2b0], ebx
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x278], ebx
call fcn.0101eda2
cmp eax, ebx
jl 0x1021eb1
lea edx, [ebp - 0x280]
xor ecx, ecx
push edx
push ecx
xor eax, eax
push eax
lea ecx, [ebp - 0x304]
call fcn.0101cba5
push dword [0x10a3e1c]
lea edx, [ebp - 0x2b8]
push dword [0x10a3e18]
lea ecx, [ebp - 0x304]
call fcn.01046edd
cmp eax, ebx
jge 0x1021eb8
mov ebx, eax
jmp 0x1021f3e
push ebx
push ebx
push ebx
push 0x60
push 2
push 6
push 0x80
push ebx
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x304]
push eax
push dword [0x10a3e1c]
mov edx, 0x40100000
push dword [0x10a3e18]
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ebx
call fcn.010477ef
cmp eax, ebx
jl 0x1021f31
push ebx
push ebx
push ebx
push dword [ebp - 0x250]
lea eax, [ebp - 0x2e4]
push dword [ebp - 0x248]
xor edx, edx
push eax
push ebx
push dword [ebp - 0x254]
xor ecx, ecx
push dword [ebp - 0x258]
call fcn.010466f4
cmp eax, ebx
jge 0x1021f33
mov ebx, eax
lea ecx, [ebp - 0x258]
call fcn.0101d524
lea ecx, [ebp - 0x280]
call fcn.0101cd79
lea ecx, [ebp - 0x250]
call fcn.0101cd79
lea ecx, [ebp - 0x228]
call fcn.0101dcfd
lea ecx, [ebp - 0x274]
call fcn.0101dcfd
lea ecx, [ebp - 0x244]
call fcn.0101dcfd
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
pop ebx
call fcn.0103c07d
leave
ret 0x1c