Function at 0x446200
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efeac
mov eax, dword fs:[0]
push eax
sub esp, 0x588
mov eax, dword [0x560094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4f4], edi
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x446273
push 0xb
mov dword [edi + 0x10], eax
mov ecx, edi
mov dword [edi + 0x14], 7
push 0x4ffc14
mov word [edi], ax
call fcn.0042b3e0
jmp 0x446a2c
cmp dword [esi + 0x14], 8
jb 0x44627b
mov esi, dword [esi]
push 0xfde9
push esi
lea ecx, [ebp - 0x594]
call fcn.00436660
mov edx, dword [eax]
mov ecx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0xf
mov byte [ebp - 0x4e0], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4462b5
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x4e0]
call fcn.0042b2e0
mov eax, dword [ebp - 0x594]
lea ecx, [ebp - 0x590]
mov byte [ebp - 4], 2
cmp eax, ecx
je 0x4462e8
push eax
call fcn.004c4deb
add esp, 4
xorps xmm0, xmm0
lea ecx, [ebp - 0x450]
movups xmmword [ebp - 0x450], xmm0
movq qword [ebp - 0x440], xmm0
call fcn.0048c590
lea eax, [ebp - 0x4e0]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x450]
call fcn.0048d150
test al, al
jne 0x446345
push 0xc
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov ecx, edi
push 0x4ffc2c
mov word [edi], ax
call fcn.0042b3e0
jmp 0x446a16
push 0x4ffc48
lea ecx, [ebp - 0x4e4]
call fcn.0042e720
push 8
push str.sections
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 4
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
call fcn.0042b2e0
push 0xfde9
lea eax, [ebp - 0x4e4]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x4e8]
push eax
lea ecx, [ebp - 0x450]
call fcn.0048cfc0
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov byte [ebp - 4], 6
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 0x49c], 7
mov word [ebp - 0x4b0], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4463d7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4b0]
call fcn.0042b3e0
mov edx, dword [ebp - 0x4e8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x446413
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x438]
call fcn.00429290
mov edx, dword [ebp - 0x4e4]
mov eax, esi
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44643f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x4ffc58
lea ecx, [ebp - 0x4f0]
call fcn.0042e720
push 3
push 0x4ffc5c
lea ecx, [ebp - 0x510]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x500], 0
mov dword [ebp - 0x4fc], 0xf
mov byte [ebp - 0x510], 0
call fcn.0042b2e0
push 0xfde9
lea eax, [ebp - 0x4f0]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x4ec]
push eax
lea ecx, [ebp - 0x450]
call fcn.0048cfc0
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov word [ebp - 0x498], ax
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x484], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x4e8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4464d7
sub ecx, dword [ebp - 0x4e8]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x498]
call fcn.0042b3e0
mov edx, dword [ebp - 0x4ec]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x446514
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x510]
call fcn.00429290
mov edx, dword [ebp - 0x4f0]
mov eax, esi
mov byte [ebp - 4], 0x11
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x446540
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x4ffc60
lea ecx, [ebp - 0x4e4]
call fcn.0042e720
push 5
push str.value
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
call fcn.0042b2e0
push 0xfde9
lea eax, [ebp - 0x4e4]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x4e8]
push eax
lea ecx, [ebp - 0x450]
call fcn.0048cfc0
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov word [ebp - 0x468], ax
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x4ec], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4465e0
sub ecx, dword [ebp - 0x4ec]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x468]
call fcn.0042b3e0
mov edx, dword [ebp - 0x4e8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44661d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x438]
call fcn.00429290
mov edx, dword [ebp - 0x4e4]
mov eax, esi
mov byte [ebp - 4], 0x18
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x446649
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x4ffc6c
lea ecx, [ebp - 0x4f0]
call fcn.0042e720
push 9
push str.file_path
lea ecx, [ebp - 0x510]
mov byte [ebp - 4], 0x19
mov dword [ebp - 0x500], 0
mov dword [ebp - 0x4fc], 0xf
mov byte [ebp - 0x510], 0
call fcn.0042b2e0
push 0xfde9
lea eax, [ebp - 0x4f0]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x4f8]
push eax
lea ecx, [ebp - 0x450]
call fcn.0048cfc0
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov word [ebp - 0x480], ax
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x4ec], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4466e1
sub ecx, dword [ebp - 0x4ec]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x480]
call fcn.0042b3e0
mov edx, dword [ebp - 0x4f8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44671e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x510]
call fcn.00429290
mov edx, dword [ebp - 0x4f0]
mov byte [ebp - 4], 0x1f
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x446748
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
cmp dword [ebp - 0x458], 0x1000
jae 0x446988
cmp dword [ebp - 0x46c], 8
lea esi, [ebp - 0x480]
lea eax, [ebp - 0x468]
cmovae esi, dword [ebp - 0x480]
cmp dword [ebp - 0x454], 8
push 0x208
cmovae eax, dword [ebp - 0x468]
cmp dword [ebp - 0x484], 8
mov dword [ebp - 0x4e8], eax
lea eax, [ebp - 0x498]
cmovae eax, dword [ebp - 0x498]
cmp dword [ebp - 0x49c], 8
mov dword [ebp - 0x4e4], eax
lea eax, [ebp - 0x4b0]
cmovae eax, dword [ebp - 0x4b0]
mov dword [ebp - 0x4f4], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x4ec], esi
call fcn.004c1860
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004ca327
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor eax, eax
mov dword [ebp - 0x428], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x446820
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.0042b3e0
push 1
push 0x4ffc9c
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0x20
call fcn.0043ca90
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004c1860
mov ecx, dword [ebp - 0x438]
xor esi, esi
add esp, 0xc
cmp dword [ebp - 0x428], esi
jbe 0x4468da
nop
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, ecx
movzx eax, word [eax + esi*2]
mov edx, eax
mov word [ebp + esi*2 - 0x420], ax
cmp edx, 0x5c
je 0x4468a8
cmp edx, 0x2f
jne 0x4468d1
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4468cb
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x446936
mov ecx, dword [ebp - 0x438]
inc esi
cmp esi, dword [ebp - 0x428]
jb 0x446880
push dword [ebp - 0x4ec]
push dword [ebp - 0x4e8]
push dword [ebp - 0x4e4]
push dword [ebp - 0x4f4]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
mov byte [ebp - 4], 0x1f
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x446988
mov ecx, dword [ebp - 0x438]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44697e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x446a4b
jmp 0x44697e
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 0x1f
cmp eax, 8
jb 0x44697a
mov ecx, dword [ebp - 0x438]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x446970
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x446a50
push edx
push ecx
call fcn.0049fef8
add esp, 8
xor esi, esi
jmp 0x446988
push edx
push ecx
call fcn.0049fef8
add esp, 8
push esi
lea eax, [ebp - 0x4c8]
push str._success_:_d
push eax
call fcn.00471650
movups xmm0, xmmword [ebp - 0x4c8]
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x4c8]
mov dword [edi + 0x14], 0
add esp, 0xc
movups xmmword [edi], xmm0
xor eax, eax
movq xmm0, qword [ebp - 0x4b8]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 0x4b4], 7
mov word [ebp - 0x4c8], ax
call fcn.004292e0
lea ecx, [ebp - 0x480]
call fcn.004292e0
lea ecx, [ebp - 0x468]
call fcn.004292e0
lea ecx, [ebp - 0x498]
call fcn.004292e0
lea ecx, [ebp - 0x4b0]
call fcn.004292e0
lea ecx, [ebp - 0x450]
call fcn.00489da0
lea ecx, [ebp - 0x4e0]
call fcn.00429290
mov eax, edi
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.004a01a0
mov esp, ebp
pop ebp
ret 8
call fcn.004c4d9a
call fcn.004c4d9a
int3