Function at 0x409309
Capabilities:
Create directory

Disassembly:
mov eax, 0x4469cf
call fcn.00427ffc
sub esp, 0x170
push ebx
push esi
mov esi, dword [ebp + 0x18]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x409626
cmp byte [0x45f95c], 1
je 0x409626
mov ecx, dword [ebp + 0x1c]
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.004043d8
mov ecx, dword [ebp + 0x1c]
push esi
mov dword [ebp - 4], ebx
call fcn.004039a3
test al, al
je 0x40944a
sub esp, 0x1c
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.00401d56
mov edi, dword [ebp + 0x24]
mov ecx, dword [edi + 0x10]
call fcn.004049ba
cmp eax, ebx
jne 0x4093b4
push dword [esi + 0x38]
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x44]
push eax
call fcn.004043d8
push dword [esi + 0x30]
mov ecx, dword [edi + 0x10]
push dword [esi + 0x2c]
lea eax, [ebp - 0x44]
push dword [esi + 0x24]
mov byte [ebp - 4], 1
push dword [esi + 0x20]
push dword [esi + 0x1c]
push esi
push eax
call fcn.0040502f
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.004014e9
test byte [esi + 0x2c], 1
je 0x4093ed
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x14]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00401db6
mov eax, dword [ebp - 0x40]
add esp, 0xc
cmp dword [ebp - 0x2c], 0x10
jae 0x4093da
lea eax, [ebp - 0x40]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.004014e9
mov ecx, dword [esi + 0x40]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [ebp + 0x18], eax
je 0x409435
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push edi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [eax + 0x28]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409309
add esp, 0x28
test al, al
je 0x40961f
lea ecx, [ebp + 0x18]
call fcn.0040154e
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0x40]
jne 0x4093f9
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004014e9
mov al, bl
jmp 0x409628
cmp byte [esi + 0x34], 0
jne 0x409435
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0x44]
push eax
call fcn.00401db6
add esp, 0xc
push str.update.dat
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004015a8
test eax, eax
jne 0x409485
push 0x449798
lea ecx, [ebp - 0x28]
call fcn.00401d99
cmp dword [ebp - 0x10], 0x10
mov edi, dword [ebp + 0x28]
mov eax, dword [ebp - 0x24]
push 0xffffffffffffffff
push dword [edi]
jae 0x409498
lea eax, [ebp - 0x24]
push ecx
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.00401f47
push dword [ebp + 0x2c]
call fcn.00407ff7
push dword [ebp + 0x2c]
lea eax, [ebp - 0x44]
push edi
mov edi, dword [ebp + 0x10]
push esi
push eax
lea eax, [ebp - 0x28]
push eax
push dword [edi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408e91
add esp, 0x30
cmp al, 1
jne 0x409604
test byte [esi + 0x2c], al
mov byte [ebp + 0x1b], 0
jne 0x40958b
mov ebx, dword [esi + 0x1c]
mov eax, dword [ebp + 0x14]
cmp ebx, dword [eax]
jbe 0x409501
push dword [edi]
call fcn.00439b4d
push ebx
call fcn.00439b52
mov dword [edi], eax
mov eax, dword [ebp + 0x14]
pop ecx
pop ecx
mov dword [eax], ebx
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x40950d
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x17c]
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
push edi
push eax
call fcn.0040bf33
test al, al
je 0x40956e
mov eax, dword [ebp - 0x78]
mov ebx, dword [ebp + 0x24]
push dword [esi + 0x2c]
mov ecx, ebx
mov dword [ebp - 0x70], eax
call fcn.00402935
test eax, eax
je 0x40956e
push dword [edi]
lea ecx, [ebp - 0x17c]
push ecx
mov ecx, eax
call fcn.0040ce6f
push dword [esi + 0x30]
mov ecx, dword [ebx + 0x10]
push dword [esi + 0x2c]
lea eax, [ebp - 0x28]
push 0
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x28]
push eax
call fcn.004053dc
mov byte [ebp + 0x1b], 1
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
call fcn.0040c863
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.004014e9
mov bl, byte [ebp + 0x1b]
jmp 0x409437
mov edi, dword [ebp + 0x24]
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x14]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00401db6
sub esp, 0x10
lea eax, [ebp - 0x64]
mov ecx, esp
mov dword [ebp - 0x48], esp
push eax
mov byte [ebp - 4], 3
call fcn.00401d56
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x4095c0
lea eax, [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0040bbac
cmp eax, ebx
je 0x4095f0
push dword [esi + 0x30]
mov ecx, dword [edi + 0x10]
push dword [esi + 0x2c]
lea eax, [ebp - 0x28]
push ebx
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x28]
push eax
call fcn.004053dc
mov byte [ebp + 0x1b], 1
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.004014e9
jmp 0x409570
mov ecx, dword [ebp + 0xc]
call fcn.0040b1c2
mov ecx, dword [ebp + 0xc]
call fcn.0040ada0
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.004014e9
xor bl, bl
jmp 0x409437
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret