Function at 0x45990c
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov byte [ebp - 5], 0
test edi, edi
je 0x4599e2
mov edx, dword [0x4be784]
add edx, 0x400
lea eax, [ebp - 0x110]
call fcn.004b81b0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2c], 0
je 0x4599e2
cmp byte [edi], 0x2e
je 0x4599e2
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.004b81b0
lea eax, [ebp - 0x110]
mov dl, 1
call fcn.004acbf0
mov eax, dword [0x4be784]
cmp byte [eax + 0x187b], 0
je 0x4599af
lea eax, [ebp - 0x110]
call fcn.004ab508
test al, al
jne 0x4599a3
lea edx, [ebp - 0x110]
mov ax, 3
call fcn.004acdac
jmp 0x459d31
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_DeleteFileA_1
push 0
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_CreateDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4599db
lea edx, [ebp - 0x110]
mov ax, 3
call fcn.004acdac
jmp 0x459d31
mov eax, dword [0x4beefc]
inc dword [eax]
cmp dword [ebx + 0x5c], 0
je 0x459b52
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00452740
mov eax, dword [0x4be55c]
mov byte [eax], 0
mov edx, dword [0x4be538]
mov eax, dword [0x4be874]
mov ax, word [eax]
xor ecx, ecx
call fcn.004184e0
test al, al
je 0x459d31
cmp dword [ebp + 8], 0
jne 0x459ab7
push 4
mov eax, dword [0x4be6d8]
mov eax, dword [eax]
mov ax, word [eax + 0x92]
call fcn.004b1cb8
mov edx, eax
mov eax, dword [0x4be6d8]
mov eax, dword [eax]
mov ecx, edi
call fcn.00419530
test al, al
je 0x459b2b
mov eax, dword [0x4be888]
inc dword [eax]
mov eax, dword [0x4be6a4]
fild qword [eax]
mov eax, dword [0x4be6d8]
mov eax, dword [eax]
fild qword [eax + 0x10]
faddp st(1)
mov eax, dword [0x4be6a4]
fistp qword [eax]
wait
mov byte [ebp - 5], 1
mov eax, dword [0x4be6d8]
mov eax, dword [eax]
add eax, 0x2c
call fcn.00411360
push 0
mov eax, dword [0x4be6d8]
mov eax, dword [eax]
add eax, 0x2c
push eax
xor ecx, ecx
mov edx, edi
mov al, 1
call fcn.004b3bb4
test al, al
jne 0x459b2b
call sub.kernel32.dll_GetLastError_1
mov edx, eax
mov eax, edi
call fcn.0049d794
jmp 0x459b2b
mov eax, dword [0x4be6d8]
mov eax, dword [eax]
mov edx, dword [eax + 0x1a0]
call dword [edx + 0x10]
test al, al
je 0x459b2b
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x4be6d8]
mov eax, dword [eax]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004af008
push eax
lea edx, [ebp - 0x10]
mov eax, dword [0x4be6d8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov ebx, dword [eax + 0x1a0]
call dword [ebx + 0x18]
mov dword [ebp - 0x114], eax
fild dword [ebp - 0x114]
mov eax, dword [0x4be6d8]
mov eax, dword [eax]
fild qword [eax + 0x10]
fcompp
fnstsw ax
sahf
sete byte [ebp - 5]
mov eax, dword [0x4be6d8]
mov eax, dword [eax]
mov edx, dword [eax + 0x1a0]
call dword [edx + 0x14]
mov eax, dword [0x4be6d8]
mov eax, dword [eax]
mov edx, dword [eax + 0x1a0]
call dword [edx]
mov edx, 0x1a4
call fcn.00402524
mov eax, dword [0x4be6d8]
xor edx, edx
mov dword [eax], edx
jmp 0x459d31
lea edx, [ebx + 0x15c]
mov eax, dword [ebx + 0x24]
call fcn.004a2578
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.0046a960
test al, al
je 0x459d2d
movsx eax, byte [ebx + 0x442]
mov edx, dword [0x4be4fc]
cmp byte [edx + eax - 1], 0xff
jne 0x459c02
mov dword [0x4c15d8], 0xffffffff
lea eax, [ebx + 0x15c]
push eax
mov al, byte [ebx + 0x442]
push eax
push 0x4c15e4
push 0x4c15d0
push 0x4c16e4
push 0x4c16ec
push 0x4c15e0
push 0x4c15e1
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x14]
mov edx, esi
call fcn.004a1cd8
test al, al
je 0x459d2d
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2c]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x4c15e4
push edi
mov eax, ebx
mov cl, 1
xor edx, edx
call fcn.0046a410
test al, al
je 0x459d31
jmp 0x459d2d
movsx eax, byte [ebx + 0x442]
mov edx, dword [0x4be4fc]
cmp byte [edx + eax - 1], 3
jne 0x459c1b
cmp esi, 2
je 0x459c2a
mov eax, dword [ebx + 0x24]
cmp eax, dword [ebx + 0x170]
jb 0x459c2a
xor edx, edx
jmp 0x459c2c
mov dl, 1
mov eax, dword [ebx + 0x14]
call fcn.004a1da8
test al, al
je 0x459d2d
cmp esi, 0xffffffff
je 0x459c7d
lea edx, [ebx + 0x15c]
mov eax, esi
call fcn.004a25d8
call fcn.004aef80
movsx eax, byte [ebx + 0x442]
mov edx, dword [0x4becf0]
movzx eax, word [edx + eax*2 + 0x54]
mov dword [ebp - 0x114], eax
fild dword [ebp - 0x114]
fmulp st(1)
mov eax, dword [0x4be4c4]
fistp qword [eax]
wait
jmp 0x459cb1
movsx eax, byte [ebx + 0x442]
mov edx, dword [0x4becf0]
movzx eax, word [edx + eax*2 + 0x54]
imul dword [ebx + 0x16c]
mov dword [ebp - 0x11c], eax
xor eax, eax
mov dword [ebp - 0x118], eax
fild qword [ebp - 0x11c]
mov eax, dword [0x4be4c4]
fistp qword [eax]
wait
mov eax, dword [ebp - 4]
fild qword [eax + 0x3a]
mov eax, dword [0x4be4c4]
fild qword [eax]
fsubp st(1)
add esp, 0xfffffff8
fistp qword [esp]
wait
call fcn.004af008
mov esi, eax
test esi, esi
jl 0x459d2d
push 0x4c15d0
push 0x4c15d8
push 0x4c15e0
push 1
mov ecx, 0x4c15e4
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x14]
add eax, esi
call fcn.004a0fe4
test al, al
je 0x459d2d
add esi, dword [ebx + 0x14]
mov dword [0x4c15dc], esi
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2c]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x4c15e4
push edi
mov eax, dword [ebp - 4]
mov dl, byte [eax + 0x2c]
mov eax, ebx
mov cl, 1
call fcn.0046a410
test al, al
je 0x459d31
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8