Function at 0x48d8a0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov eax, dword [0x58b330]
sub esp, 0x470
test eax, eax
je 0x48dbf9
push ebx
push ebp
push esi
push edi
push 0x58b314
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x57fe8c], 0xffffffff
mov edi, dword [esp + 0x48c]
mov ebx, dword [esp + 0x488]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x48d9b9
lea ecx, [esp + 0x4c]
push ecx
call fcn.0051ec40
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x32]
movzx ecx, word [esp + 0x30]
movzx edx, word [esp + 0x2e]
push eax
movzx eax, word [esp + 0x30]
push ecx
movzx ecx, word [esp + 0x32]
push edx
movzx edx, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x34]
push ecx
push edx
push eax
lea ecx, [esp + 0x68]
push str._04d__02d__02d__02d:_02d:_02d._03d:
push ecx
call fcn.0051fa10
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
add esp, 0x24
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [0x57fe8c]
push eax
push ecx
push edx
call ebp
push edi
push ebx
lea eax, [esp + 0x54]
push eax
call fcn.0051f9d0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
xor esi, esi
cmp eax, 2
jl 0x48d983
cmp byte [ecx + eax - 2], 0xd
je 0x48d983
cmp byte [ecx + eax - 1], 0xa
jne 0x48d983
sub eax, 1
mov dword [esp + 0x4c], eax
mov esi, 1
push 0
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [0x57fe8c]
push ecx
push eax
call ebp
test esi, esi
je 0x48d9af
mov edx, dword [0x57fe8c]
push 0
lea ecx, [esp + 0x14]
push ecx
push 2
push 0x5465bc
push edx
call ebp
lea eax, [esp + 0x4c]
push eax
call fcn.00522920
cmp dword [0x58b32c], 0
je 0x48dbea
lea ecx, [esp + 0x15c]
push ecx
call fcn.0051ec40
push edi
push ebx
lea edx, [esp + 0x164]
push edx
call fcn.0051f9d0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileType]
mov ebx, eax
push ebx
mov dword [esp + 0x18], ebx
call esi
push ebx
call esi
cmp eax, 2
jne 0x48db66
lea eax, [esp + 0x26c]
push eax
call fcn.0051ec40
mov ecx, dword [esp + 0x164]
push ecx
lea edx, [esp + 0x270]
push edx
call fcn.00522b90
mov edi, dword [esp + 0x274]
cmp word [edi], 0
je 0x48db57
mov edx, dword [esp + 0x484]
mov ecx, edx
and ecx, 0xff000000
mov dword [esp + 0x20], ecx
jmp 0x48da5b
mov edx, dword [esp + 0x484]
mov ecx, dword [esp + 0x20]
movzx eax, word [edi]
test ax, ax
mov ebx, edi
mov dword [esp + 0x10], 0
je 0x48da9a
lea ecx, [ecx]
cmp ax, 0xd
jne 0x48da88
cmp word [edi + 2], 0xa
jne 0x48da8e
mov esi, edi
sub esi, ebx
sar esi, 1
add edi, 4
jmp 0x48daab
cmp ax, 0xa
je 0x48daa2
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x48da70
mov esi, edi
sub esi, ebx
sar esi, 1
jmp 0x48dab3
mov esi, edi
sub esi, ebx
sar esi, 1
add edi, 2
mov dword [esp + 0x10], 1
test ecx, ecx
je 0x48db0c
test edx, 0xff0000
mov ebp, 8
je 0x48dac9
mov ebp, 0xc
test edx, 0xff00
je 0x48dad4
or ebp, 2
test dl, dl
je 0x48dadb
or ebp, 1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x24], 7
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x48db00
movzx edx, word [esp + 0x3c]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x14]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
mov esi, dword [0x58afa0]
push ebx
mov ebx, dword [esp + 0x24]
push ebx
call esi
cmp dword [esp + 0x10], 0
je 0x48db3a
push 0
lea edx, [esp + 0x1c]
push edx
push 2
push 0x54d43c
push ebx
call esi
cmp dword [esp + 0x20], 0
je 0x48db4d
mov eax, dword [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp word [edi], 0
jne 0x48da50
lea ecx, [esp + 0x26c]
push ecx
call fcn.00522920
jmp 0x48dbdd
mov esi, dword [esp + 0x164]
cmp byte [esi], 0
je 0x48dbdd
mov al, byte [esi]
xor edi, edi
test al, al
mov ecx, esi
je 0x48dba6
lea esp, [esp]
cmp al, 0xd
jne 0x48db98
cmp byte [esi + 1], 0xa
jne 0x48db9c
mov eax, esi
sub eax, ecx
mov edi, 1
add esi, 2
jmp 0x48dbb7
cmp al, 0xa
je 0x48dbac
mov al, byte [esi + 1]
add esi, 1
test al, al
jne 0x48db80
mov eax, esi
sub eax, ecx
jmp 0x48dbb7
mov eax, esi
mov edi, 1
sub eax, ecx
add esi, edi
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
push ebx
call ebp
test edi, edi
je 0x48dbd8
push 0
lea eax, [esp + 0x1c]
push eax
push 2
push 0x5465bc
push ebx
call ebp
cmp byte [esi], 0
jne 0x48db72
lea ecx, [esp + 0x15c]
push ecx
call fcn.00522920
push 0x58b314
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x470
ret 0xc