Function at 0x47dc78
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 3
add esp, 0xfffff004
push eax
dec eax
jne 0x47dc81
add esp, 0xffffff24
mov eax, dword [ebp - 4]
xor ecx, ecx
push ebx
push esi
mov esi, 0x4ae670
push edi
mov ebx, dword [ebp + 8]
lea edx, [esi + 0x3a]
lea eax, [esi + 2]
call fcn.00461bc4
test eax, eax
jne 0x47dcbd
cmp byte [0x4bd6d9], 0
je 0x47dfc3
cmp byte [0x4b41ac], 0
je 0x47dfc3
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 0x800
lea edx, [ebp - 0xc04]
push edx
call fcn.0049bd04
add esp, 0x10
mov byte [ebp - 0x405], 0
test ebx, ebx
jne 0x47dcf5
lea ecx, [esi + 1]
jmp 0x47dcf7
mov ecx, ebx
push ecx
lea eax, [ebp - 0x404]
push eax
call fcn.00498e7c
add esp, 8
xor eax, eax
jmp 0x47dd22
xor edx, edx
mov dl, byte [ebp + eax - 0x404]
cmp edx, 0x2f
jne 0x47dd21
mov byte [ebp + eax - 0x404], 0x5c
inc eax
cmp byte [ebp + eax - 0x404], 0
jne 0x47dd0b
lea ecx, [ebp - 0xc14]
push ecx
call sub.KERNEL32.DLL_GetLocalTime
push 0x32
lea eax, [ebp - 0xc48]
push eax
push 0
lea edx, [ebp - 0xc14]
push edx
push 0
push 0x400
call sub.KERNEL32.DLL_GetTimeFormatA
push 0x32
lea ecx, [ebp - 0xc7c]
push ecx
push 0
lea eax, [ebp - 0xc14]
push eax
push 0
push 0x400
call sub.KERNEL32.DLL_GetDateFormatA
lea edx, [ebp - 0xc48]
push edx
lea ecx, [ebp - 0xc7c]
push ecx
lea eax, [esi + 0x3e]
push eax
lea edx, [ebp - 0xce0]
push edx
call fcn.0049bdcc
add esp, 0x10
push 0x4c98b0
lea ecx, [ebp - 0x10e0]
push ecx
call fcn.00498e7c
add esp, 8
cmp byte [0x4bd6d9], 0
je 0x47ddf8
mov eax, 0x4bd6d9
call fcn.0040be48
cmp eax, 0x4bd6d9
jne 0x47dde4
mov eax, 0x4bd6d9
call fcn.0040be48
push eax
lea eax, [ebp - 0x10e0]
call fcn.0040be48
push eax
call fcn.00498e7c
add esp, 8
jmp 0x47ddf8
push 0x4bd6d9
lea edx, [ebp - 0x10e0]
push edx
call fcn.00498e7c
add esp, 8
lea ecx, [esi + 0x44]
push ecx
lea eax, [ebp - 0x10e0]
push eax
call fcn.0049adac
add esp, 8
mov ebx, eax
test eax, eax
jne 0x47de49
lea edx, [esi + 0x48]
push edx
lea ecx, [ebp - 0x10e0]
push ecx
call fcn.0049adac
add esp, 8
mov ebx, eax
test eax, eax
jne 0x47de49
lea edx, [ebp - 0x10e0]
mov eax, 0x1f5
push edx
call fcn.004129c8
push eax
call fcn.00487828
add esp, 8
jmp 0x47dfc3
push 2
push 0
push ebx
call fcn.0049b0c4
add esp, 0xc
push 0x4ae270
lea edx, [ebp - 0x404]
push edx
call fcn.00498e30
add esp, 8
test eax, eax
je 0x47de9d
cmp byte [ebp - 0x404], 0
je 0x47de9d
lea ecx, [ebp - 0x404]
mov eax, 0x6b
push ecx
call fcn.004129c8
push eax
lea edx, [ebp - 0xce0]
push edx
lea ecx, [esi + 0x4c]
push ecx
push ebx
call fcn.0049ade0
add esp, 0x14
lea eax, [ebp - 0x404]
push eax
push 0x4ae270
call fcn.00498e7c
add esp, 8
lea edx, [ebp - 0xce0]
push edx
lea ecx, [esi + 0x66]
push ecx
push ebx
call fcn.0049ade0
add esp, 0xc
lea eax, [ebp - 0xc04]
push eax
lea edx, [esi + 0x27]
push edx
push ebx
call fcn.0049ade0
add esp, 0xc
lea edx, [esi + 0x6e]
lea eax, [esi + 2]
xor ecx, ecx
call fcn.00461bc4
test eax, eax
je 0x47dfbc
lea edx, [esi + 0x77]
lea eax, [esi + 2]
mov ecx, 0x3e8
call fcn.00461bc4
shl eax, 0xa
push ebx
mov esi, eax
call fcn.0049b138
pop ecx
sub eax, esi
test eax, eax
jle 0x47dfbc
push 0
add eax, 0x2710
push eax
push ebx
call fcn.0049b0c4
add esp, 0xc
lea edx, [ebp - 0x30e0]
push ebx
push 0x2000
push edx
call fcn.0049a9ec
add esp, 0xc
push ebx
call fcn.0049b138
pop ecx
mov dword [ebp - 4], eax
xor edi, edi
jmp 0x47df7a
push 0
push edi
push ebx
call fcn.0049b0c4
add esp, 0xc
push ebx
push esi
push 1
lea eax, [ebp - 0x30e0]
push eax
call fcn.0049b1c4
add esp, 0x10
add dword [ebp - 4], esi
add edi, esi
push 0
push dword [ebp - 4]
push ebx
call fcn.0049b0c4
add esp, 0xc
push ebx
push 0x2000
push 1
lea edx, [ebp - 0x30e0]
push edx
call fcn.0049b024
add esp, 0x10
mov esi, eax
test eax, eax
jne 0x47df48
push ebx
call fcn.0049a95c
pop ecx
push 0
push edi
push ebx
call fcn.0049b0c4
add esp, 0xc
xor edx, edx
mov dl, byte [ebx + 0x16]
push edx
call fcn.0049b9b0
pop ecx
push eax
call sub.KERNEL32.DLL_SetEndOfFile
push ebx
call fcn.0049a8b4
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret