Function at 0x4dc620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4578
call fcn.005eb280
mov eax, dword [0x6bae70]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x4544], ecx
cmp dword [ebp + 0x14], 3
je 0x4dc659
cmp dword [ebp + 0x14], 2
je 0x4dc659
cmp dword [ebp + 0x14], 1
je 0x4dc659
mov eax, 0x10000
jmp 0x4dcbab
cmp dword [ebp + 0x14], 3
jne 0x4dc786
mov eax, dword [ebp - 0x4544]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x4dc71a
mov edx, dword [ebp - 0x4544]
cmp dword [edx + 4], 0xffffffff
je 0x4dc692
mov eax, dword [ebp - 0x4544]
mov ecx, dword [eax]
push ecx
call fcn.004e1860
add esp, 4
mov edx, dword [ebp - 0x4544]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x4544]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x4dc6b9
mov eax, 0x10000
jmp 0x4dcbab
mov eax, dword [ebp - 0x4544]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x4dc6da
mov eax, dword [ebp - 0x4544]
mov ecx, dword [eax]
push ecx
call fcn.004e1960
add esp, 4
mov edx, dword [ebp - 0x4544]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x4dc6fd
mov edx, dword [ebp - 0x4544]
mov eax, dword [edx]
push eax
call fcn.004e19e0
add esp, 4
jmp 0x4dc6da
mov ecx, dword [ebp - 0x4544]
mov edx, dword [ecx]
push edx
call fcn.004e1c50
add esp, 4
mov eax, dword [ebp - 0x4544]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x4544]
mov edx, dword [ecx]
push edx
call fcn.004e20d0
add esp, 0xc
mov dword [ebp - 0x4560], eax
cmp dword [ebp - 0x4560], 0
jle 0x4dc74c
mov eax, 0x600
jmp 0x4dcbab
mov eax, dword [ebp - 0x4544]
mov ecx, dword [eax]
push ecx
call fcn.004e1860
add esp, 4
mov edx, dword [ebp - 0x4544]
mov dword [edx + 4], 0xffffffff
cmp dword [ebp - 0x4560], 0
jne 0x4dc77c
xor eax, eax
jmp 0x4dcbab
mov eax, 0x5000000
jmp 0x4dcbab
mov eax, dword [ebp - 0x4544]
cmp dword [eax + 4], 0xffffffff
je 0x4dc7a3
mov ecx, dword [ebp - 0x4544]
mov edx, dword [ecx]
push edx
call fcn.004e1860
add esp, 4
mov eax, dword [ebp - 0x4544]
mov dword [eax + 4], 0xffffffff
mov ecx, dword [ebp - 0x4544]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 4]
jl 0x4dc7ca
mov eax, 0x10000
jmp 0x4dcbab
mov ecx, dword [ebp - 0x4544]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x10]
jge 0x4dc7eb
mov ecx, dword [ebp - 0x4544]
mov edx, dword [ecx]
push edx
call fcn.004e1960
add esp, 4
mov eax, dword [ebp - 0x4544]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp + 8]
jge 0x4dc80e
mov eax, dword [ebp - 0x4544]
mov ecx, dword [eax]
push ecx
call fcn.004e19e0
add esp, 4
jmp 0x4dc7eb
lea edx, [ebp - 0x4540]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x4544]
call fcn.004dba50
mov ecx, dword [ebp - 0x4438]
and ecx, 0x10
je 0x4dc87a
cmp dword [ebp + 0x14], 1
jne 0x4dc83c
xor eax, eax
jmp 0x4dcbab
push 0x103
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x453c]
push eax
call fcn.004dc330
add esp, 0xc
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp - 0x4544]
add edx, 0x138
push edx
call fcn.004db6d0
add esp, 8
xor eax, eax
jmp 0x4dcbab
cmp dword [ebp + 0x14], 1
jne 0x4dc88e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x454c], eax
jmp 0x4dca68
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4554], ecx
mov edx, dword [ebp - 0x4554]
mov dword [ebp - 0x4550], edx
mov eax, dword [ebp - 0x4550]
movzx ecx, word [eax]
test ecx, ecx
je 0x4dc8ec
mov edx, dword [ebp - 0x4550]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x4dc8cc
mov ecx, dword [ebp - 0x4550]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x4dc8db
mov eax, dword [ebp - 0x4550]
add eax, 2
mov dword [ebp - 0x4554], eax
mov ecx, dword [ebp - 0x4550]
add ecx, 2
mov dword [ebp - 0x4550], ecx
jmp 0x4dc8a3
mov edx, dword [ebp - 0x4554]
cmp edx, dword [ebp + 0xc]
je 0x4dca44
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.005eceba
add esp, 8
mov edx, dword [ebp - 0x4554]
sub edx, dword [ebp + 0xc]
sar edx, 1
lea eax, [edx + edx - 2]
mov dword [ebp - 0x455c], eax
cmp dword [ebp - 0x455c], 0x208
jae 0x4dc931
jmp 0x4dc936
call fcn.005edd00
xor ecx, ecx
mov edx, dword [ebp - 0x455c]
mov word [ebp + edx - 0x20c], cx
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x20c]
cmp edx, 0x2f
je 0x4dc991
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x20c]
cmp edx, 0x5c
je 0x4dc991
mov eax, 2
shl eax, 0
movzx ecx, word [ebp + eax - 0x20c]
cmp ecx, 0x3a
je 0x4dc991
mov dword [ebp - 0x4564], 0
jmp 0x4dc99b
mov dword [ebp - 0x4564], 1
mov dl, byte [ebp - 0x4564]
mov byte [ebp - 0x4546], dl
push 0x63fdd4
lea eax, [ebp - 0x20c]
push eax
call fcn.005ed0c5
add esp, 8
test eax, eax
je 0x4dc9cb
mov dword [ebp - 0x456c], 1
jmp 0x4dc9d5
mov dword [ebp - 0x456c], 0
push 0x63fddc
lea ecx, [ebp - 0x20c]
push ecx
call fcn.005ed0c5
add esp, 8
test eax, eax
je 0x4dc9f9
mov dword [ebp - 0x4568], 1
jmp 0x4dca03
mov dword [ebp - 0x4568], 0
movzx edx, byte [ebp - 0x4546]
mov eax, dword [ebp - 0x456c]
or eax, dword [ebp - 0x4568]
or edx, eax
mov byte [ebp - 0x4546], dl
movzx ecx, byte [ebp - 0x4546]
test ecx, ecx
jne 0x4dca44
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x4544]
add eax, 0x138
push eax
call fcn.004db6d0
add esp, 8
push 0
mov ecx, dword [ebp - 0x4438]
push ecx
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x454c], eax
cmp dword [ebp - 0x454c], 0xffffffff
jne 0x4dca7b
mov eax, 0x200
jmp 0x4dcbab
mov eax, dword [ebp - 0x4544]
mov ecx, dword [eax]
push ecx
call fcn.004e1c50
add esp, 4
mov byte [ebp - 0x4545], 0
push 0x4000
lea edx, [ebp - 0x4414]
push edx
mov eax, dword [ebp - 0x4544]
mov ecx, dword [eax]
push ecx
call fcn.004e20d0
add esp, 0xc
mov dword [ebp - 0x4558], eax
cmp dword [ebp - 0x4558], 0
jge 0x4dcac8
mov byte [ebp - 0x4545], 1
jmp 0x4dcb11
cmp dword [ebp - 0x4558], 0
jne 0x4dcad3
jmp 0x4dcb11
push 0
lea edx, [ebp - 0x4578]
push edx
mov eax, dword [ebp - 0x4558]
push eax
lea ecx, [ebp - 0x4414]
push ecx
mov edx, dword [ebp - 0x454c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4570], eax
cmp dword [ebp - 0x4570], 0
jne 0x4dcb0f
mov byte [ebp - 0x4545], 1
jmp 0x4dcb11
jmp 0x4dca93
mov byte [ebp - 0x4547], 0
mov eax, dword [ebp - 0x454c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 0x4574], eax
cmp dword [ebp - 0x4574], 1
jne 0x4dcb46
movzx ecx, byte [ebp - 0x4545]
test ecx, ecx
jne 0x4dcb46
mov byte [ebp - 0x4547], 1
movzx edx, byte [ebp - 0x4547]
test edx, edx
je 0x4dcb73
lea eax, [ebp - 0x4424]
push eax
lea ecx, [ebp - 0x4434]
push ecx
lea edx, [ebp - 0x442c]
push edx
mov eax, dword [ebp - 0x454c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x4dcb86
mov ecx, dword [ebp - 0x454c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x4544]
mov eax, dword [edx]
push eax
call fcn.004e1860
add esp, 4
movzx ecx, byte [ebp - 0x4545]
test ecx, ecx
je 0x4dcba9
mov eax, 0x400
jmp 0x4dcbab
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e9734
mov esp, ebp
pop ebp
ret 0x10