Function at 0x42c900
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525bbf
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x58e5a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x444], edx
mov eax, ecx
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x464], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x484], eax
mov dword [ebp - 0x440], 0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [ebp - 0x450], esi
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov eax, 1
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 4], eax
call fcn.00410080
mov ecx, eax
test ecx, ecx
je 0x42d227
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 3
call fcn.00410080
mov ecx, eax
test ecx, ecx
je 0x42d231
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x42c], edi
mov byte [ebp - 4], 4
call fcn.00410080
mov ecx, eax
test ecx, ecx
je 0x42d23b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
push esi
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 5
call fcn.0040c680
test al, al
jne 0x42ca3c
test esi, esi
jne 0x42ca14
xor ecx, ecx
jmp 0x42ca2f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ca20
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x424]
call fcn.0040d3a0
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x424]
push 0x5c
push esi
call fcn.004d5b9d
add esp, 8
test eax, eax
jne 0x42ca5a
or eax, 0xffffffff
jmp 0x42ca5e
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x424]
call fcn.0041a230
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 7
call fcn.0041a410
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov edx, dword [ebp - 0x430]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42caa3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
lea eax, [ebp - 0x428]
mov dword [ebp - 0x448], 0
push str._dCmdLine
push eax
call fcn.00431d90
mov esi, dword [ebp - 0x428]
lea eax, [ebp - 0x218]
add esp, 0xc
push dword [ebp - 0x450]
push 0x104
push eax
push 0x5629d0
push esi
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x430], eax
test eax, eax
je 0x42d1ae
nop dword [eax + eax]
mov esi, dword [ebp - 0x448]
lea eax, [ebp - 0x428]
push esi
push str._dParameters
push eax
call fcn.00431d90
add esp, 0xc
lea eax, [ebp - 0x420]
push dword [ebp - 0x450]
push 0x104
push eax
push 0x5629d0
push dword [ebp - 0x428]
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x430], 2
jbe 0x42cba7
push 2
lea eax, [ebp - 0x218]
push 0x565430
push eax
call fcn.005009b3
add esp, 0xc
test eax, eax
je 0x42cb71
cmp word [ebp - 0x216], 0x3a
jne 0x42cba7
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42cb80
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.0040d3a0
jmp 0x42d069
mov edi, dword [ebp - 0x424]
mov dword [ebp - 0x44c], 0
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x42cbcb
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x42cbdb
call fcn.00410080
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
mov byte [ebp - 4], 9
test ecx, ecx
je 0x42d227
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov byte [ebp - 4], 8
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x438]
or eax, 2
mov dword [ebp - 0x44c], esi
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x440], eax
mov eax, dword [ebp - 0x444]
test eax, eax
jne 0x42cc1e
xor ecx, ecx
jmp 0x42cc32
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42cc23
sub ecx, edx
sar ecx, 1
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], eax
lea edx, [ecx + eax]
mov dword [ebp - 0x454], edx
test edx, edx
js 0x42d21d
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x42cc75
push edx
lea ecx, [ebp - 0x44c]
call fcn.0040d330
mov esi, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x434]
add eax, eax
mov dword [ebp - 0x43c], eax
je 0x42ccbb
test esi, esi
je 0x42cca5
push eax
test edi, edi
je 0x42cc9a
push edi
push esi
call fcn.004d4210
add esp, 0xc
jmp 0x42ccb5
push 0
push esi
call fcn.004d52d0
add esp, 0xc
call fcn.004e08a8
mov dword [eax], 0x16
call fcn.004e0781
mov eax, dword [ebp - 0x43c]
lea ecx, [eax + esi]
mov eax, dword [ebp - 0x430]
add eax, eax
je 0x42ccfe
test ecx, ecx
je 0x42ccee
mov edx, dword [ebp - 0x444]
push eax
test edx, edx
je 0x42cce3
push edx
push ecx
call fcn.004d4210
add esp, 0xc
jmp 0x42ccfe
push 0
push ecx
call fcn.004d52d0
add esp, 0xc
call fcn.004e08a8
mov dword [eax], 0x16
call fcn.004e0781
mov eax, dword [ebp - 0x454]
lea ecx, [esi - 0x10]
mov dword [ebp - 0x464], ecx
cmp eax, dword [ecx + 8]
jg 0x42d21d
xor edx, edx
mov dword [ecx + 4], eax
mov word [esi + eax*2], dx
mov ecx, dword [ecx]
mov dword [ebp - 0x43c], edx
test ecx, ecx
je 0x42cd38
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x42cd48
call fcn.00410080
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x42d227
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov byte [ebp - 4], 0xa
lea edi, [eax + 0x10]
mov eax, dword [ebp - 0x438]
or eax, 4
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x440], eax
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x430], eax
lea edx, [eax + 1]
test edx, edx
js 0x42d21d
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x42cdb4
push edx
lea ecx, [ebp - 0x43c]
call fcn.0040d330
mov edi, dword [ebp - 0x43c]
mov eax, dword [ebp - 0x430]
add eax, eax
mov dword [ebp - 0x434], eax
je 0x42cdfa
test edi, edi
je 0x42cde4
push eax
test esi, esi
je 0x42cdd9
push esi
push edi
call fcn.004d4210
add esp, 0xc
jmp 0x42cdf4
push 0
push edi
call fcn.004d52d0
add esp, 0xc
call fcn.004e08a8
mov dword [eax], 0x16
call fcn.004e0781
mov eax, dword [ebp - 0x434]
add eax, edi
jne 0x42ce10
call fcn.004e08a8
mov dword [eax], 0x16
call fcn.004e0781
jmp 0x42ce18
mov ecx, 0x5c
mov word [eax], cx
mov eax, dword [ebp - 0x430]
lea ecx, [edi - 0x10]
inc eax
mov dword [ebp - 0x468], ecx
cmp eax, dword [ecx + 8]
jg 0x42d21d
xor edx, edx
mov dword [ecx + 4], eax
mov word [edi + eax*2], dx
mov ecx, dword [ecx]
mov dword [ebp - 0x434], edx
test ecx, ecx
je 0x42ce53
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x42ce63
call fcn.00410080
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x42d227
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x438]
or eax, 8
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x440], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42cea1
mov eax, dword [edi - 0xc]
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x458], ecx
mov dword [ebp - 0x454], eax
lea edx, [ecx + eax]
mov dword [ebp - 0x45c], edx
test edx, edx
js 0x42d21d
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x42cef3
push edx
lea ecx, [ebp - 0x434]
call fcn.0040d330
mov esi, dword [ebp - 0x434]
mov eax, dword [ebp - 0x454]
add eax, eax
mov dword [ebp - 0x430], eax
je 0x42cf39
test esi, esi
je 0x42cf23
push eax
test edi, edi
je 0x42cf18
push edi
push esi
call fcn.004d4210
add esp, 0xc
jmp 0x42cf33
push 0
push esi
call fcn.004d52d0
add esp, 0xc
call fcn.004e08a8
mov dword [eax], 0x16
call fcn.004e0781
mov eax, dword [ebp - 0x430]
lea ecx, [eax + esi]
mov eax, dword [ebp - 0x458]
add eax, eax
je 0x42cf6d
test ecx, ecx
jne 0x42cf5c
call fcn.004e08a8
mov dword [eax], 0x16
call fcn.004e0781
jmp 0x42cf6d
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
call fcn.004d4210
add esp, 0xc
mov eax, dword [ebp - 0x45c]
lea edi, [esi - 0x10]
cmp eax, dword [edi + 8]
jg 0x42d21d
xor ecx, ecx
mov dword [edi + 4], eax
mov word [esi + eax*2], cx
mov ecx, dword [ebp - 0x42c]
add ecx, 0xfffffff0
mov dword [ebp - 0x458], ecx
cmp edi, ecx
je 0x42cff8
lea eax, [ecx + 0xc]
mov dword [ebp - 0x45c], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x42cfe9
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x42cfe9
push edi
call fcn.0040d1b0
mov ecx, dword [ebp - 0x45c]
mov esi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x42cfde
mov edx, dword [ebp - 0x458]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esi + 0x10]
mov dword [ebp - 0x42c], eax
jmp 0x42cff8
push dword [edi + 4]
lea ecx, [ebp - 0x42c]
push esi
call fcn.0040d3a0
mov esi, dword [ebp - 0x438]
or eax, 0xffffffff
and esi, 0xfffffff7
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x42d016
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x468]
or edi, 0xffffffff
and esi, 0xfffffffb
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42d036
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x464]
and esi, 0xfffffffd
mov dword [ebp - 0x438], esi
mov eax, edi
mov dword [ebp - 0x440], esi
mov byte [ebp - 4], 6
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42d063
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x448]
mov edi, dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42d15a
mov ecx, edi
mov dword [ebp - 0x480], 0
xor eax, eax
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 7
mov word [ebp - 0x480], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d0b0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x480]
call fcn.00408af0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x460]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x42d109
movups xmm0, xmmword [ebp - 0x480]
mov edx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x470]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ecx + 4], 0x18
mov word [ebp - 0x480], ax
jmp 0x42d11c
lea edx, [ebp - 0x480]
push edx
push eax
call fcn.00431f40
mov edx, dword [ebp - 0x46c]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x42d15a
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d150
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d245
push edx
push ecx
call fcn.004d24a7
add esp, 8
inc esi
lea eax, [ebp - 0x428]
push esi
push str._dCmdLine
push eax
mov dword [ebp - 0x448], esi
call fcn.00431d90
mov esi, dword [ebp - 0x428]
lea eax, [ebp - 0x218]
add esp, 0xc
push dword [ebp - 0x450]
push 0x104
push eax
push 0x5629d0
push esi
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x430], eax
test eax, eax
jne 0x42cb00
mov edx, dword [ebp - 0x424]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42d1cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x42d1e4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42d1fc
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x460]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d2a60
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040fbc0
push 0x80004005
call fcn.0040fbc0
push 0x80004005
call fcn.0040fbc0
push 0x80004005
call fcn.0040fbc0
call fcn.004e0791
int3