Function at 0x403d60
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x47b642
mov eax, dword fs:[0]
push eax
sub esp, 0xe54
mov eax, dword [0x4a67d0]
xor eax, esp
mov dword [esp + 0xe50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a67d0]
xor eax, esp
push eax
lea eax, [esp + 0xe68]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xe78]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
mov dword [esp + 0x34], ecx
call fcn.00402980
push 0x7fe
lea eax, [esp + 0x66a]
push ebx
push eax
mov word [esp + 0x670], bx
call fcn.00461680
add esp, 0xc
push ebp
push 0x400
lea ecx, [esp + 0x66c]
push ecx
push str.Add.Code
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [esp + 0x30]
call fcn.004326dd
cmp word [esp + 0x664], bx
mov dword [esp + 0xe70], ebx
lea esi, [esp + 0x664]
je 0x403e90
lea esp, [esp]
push 0x3d
push esi
call fcn.004617bf
add esp, 8
add eax, 2
push eax
lea ecx, [esp + 0x18]
call fcn.00403a00
lea ecx, [esp + 0x14]
mov byte [esp + 0xe70], 1
call fcn.00402e60
lea ecx, [esp + 0x14]
call fcn.00403560
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x38]
call fcn.00432b12
push ebx
push esi
call fcn.004617bf
add eax, 2
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0xe70], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp word [esi], bx
jne 0x403e10
xor esi, esi
cmp dword [esp + 0x38], ebx
mov dword [esp + 0x18], esi
jle 0x4041f8
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x403eb4
mov esi, dword [esp + 0x18]
call fcn.00432e21
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40423b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
call fcn.00432e21
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40423b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
cmp esi, ebx
mov byte [esp + 0xe70], 2
jl 0x404245
cmp esi, dword [esp + 0x38]
jge 0x404245
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + esi*4]
sub eax, 0x10
push eax
call fcn.00402750
lea esi, [eax + 0x10]
mov dword [esp + 0x4c], esi
push 0x206
lea edx, [esp + 0x466]
push ebx
push edx
mov byte [esp + 0xe80], 3
mov word [esp + 0x46c], bx
call fcn.00461680
add esp, 0x10
push ebp
push 0x104
lea eax, [esp + 0x464]
push eax
push 0x483ce0
push str.RegisterServer
push esi
call edi
mov ecx, 0x483ce0
lea eax, [esp + 0x45c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403fa6
cmp dx, bx
je 0x403fa2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403fa6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x403f80
xor eax, eax
jmp 0x403fab
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, ebx
setne cl
push 0x206
lea edx, [esp + 0x52]
push ebx
push edx
mov word [esp + 0x58], bx
mov dword [esp + 0x2c], ecx
call fcn.00461680
push 0x206
lea eax, [esp + 0x266]
push ebx
push eax
mov word [esp + 0x26c], bx
call fcn.00461680
add esp, 0x18
push ebp
push 0x104
lea ecx, [esp + 0x25c]
push ecx
push 0x483cb8
push str.destdir
push esi
call edi
mov ecx, 0x483cb8
lea eax, [esp + 0x254]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404036
cmp dx, bx
je 0x404032
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404036
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x404010
xor eax, eax
jmp 0x40403b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x404089
mov ecx, 0x483ca4
lea eax, [esp + 0x254]
jmp 0x404050
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404076
cmp dx, bx
je 0x404072
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404076
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x404050
xor eax, eax
jmp 0x40407b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x404089
push ebx
push 0x24
lea edx, [esp + 0x54]
push edx
jmp 0x404091
push ebx
push 0x25
lea eax, [esp + 0x54]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403a00
push 1
push 0x483c64
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe78], 4
call fcn.004030e0
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.004030e0
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
call fcn.004032e0
push 0x4a7c08
lea ecx, [esp + 0x20]
call fcn.00403a00
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0xe78], 5
call fcn.004030e0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
call fcn.004032e0
sub esp, 0xc
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.00402d80
mov ecx, dword [esp + 0x38]
call fcn.00403cb0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xe70], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404150
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xe70], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404178
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0xe70], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40419c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xe70], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
jl 0x403eb0
lea ecx, [esp + 0x30]
mov dword [esp + 0xe70], 0xffffffff
call fcn.004329fb
mov eax, 1
mov ecx, dword [esp + 0xe68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe50]
xor ecx, esp
call fcn.004611fb
add esp, 0xe60
ret 4
push 0x80004005
call fcn.004022f0
call fcn.00431536
int3