Function at 0x563c80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x74
push ebp
mov ebp, dword [esp + 0x7c]
push edi
mov edi, eax
xor eax, eax
test edi, edi
je 0x563e4e
mov edx, dword [edi]
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
push edi
call dword [edx + 0x14]
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
push 0x1c
lea edx, [esp + 0x24]
push edx
push edi
call dword [eax + 0xc]
test eax, eax
jl 0x563e4e
lea ecx, [esp + 0x14]
test ecx, ecx
mov ecx, dword [esp + 0x24]
jne 0x563ccb
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x563e4e
push 0
push edi
call fcn.00562d50
test eax, eax
jl 0x563e4e
lea edx, [esp + 0x18]
push edx
push 0x6c706d73
push ebp
call fcn.00562bb0
test eax, eax
jl 0x563e4e
mov eax, dword [edi]
push esi
lea ecx, [esp + 0x10]
push ecx
mov esi, 0x24
push esi
lea edx, [esp + 0x64]
push edx
push edi
call dword [eax + 0xc]
test eax, eax
jl 0x563f34
cmp dword [esp + 0x10], esi
jne 0x563f34
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x6c]
push ecx
push ebp
call ebx
test eax, eax
je 0x563efc
cmp dword [esp + 0x10], esi
jne 0x563efc
mov eax, dword [esp + 0x7c]
test eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0
jbe 0x563e22
mov esi, 0x18
lea ebx, [ebx]
mov edx, dword [edi]
lea eax, [esp + 0x14]
push eax
push 0x20
lea ecx, [esp + 0x48]
push ecx
push edi
call dword [edx + 0xc]
test eax, eax
jl 0x563f25
cmp dword [esp + 0x14], 0x20
jne 0x563f25
mov eax, dword [esp + 0x4c]
test eax, eax
jg 0x563e0d
mov eax, dword [esp + 0x48]
jl 0x563da8
cmp eax, 0xffffffff
ja 0x563e0d
mov ecx, dword [esp + 0x54]
test ecx, ecx
jg 0x563e0d
mov ecx, dword [esp + 0x50]
jl 0x563dbb
cmp ecx, 0xffffffff
ja 0x563e0d
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
lea eax, [eax + ecx - 1]
mov ecx, dword [esp + 0x58]
push 0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x3c], ecx
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x68]
push ecx
push ebp
mov dword [esp + 0x4c], edx
call ebx
test eax, eax
je 0x563efc
cmp dword [esp + 0x10], esi
jne 0x563efc
add dword [esp + 0x18], esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x7c]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x563d70
mov eax, dword [esp + 0x80]
test eax, eax
je 0x563ec8
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x563e56
pop ebx
mov eax, 0x8007000e
pop esi
pop edi
pop ebp
add esp, 0x74
ret 4
mov ecx, dword [esp + 0x80]
mov edx, dword [edi]
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push edi
call dword [edx + 0xc]
test eax, eax
jl 0x563f0b
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x14], eax
jne 0x563f0b
push 0
lea edx, [esp + 0x14]
push edx
push eax
push esi
push ebp
call ebx
test eax, eax
je 0x563ee2
mov eax, dword [esp + 0x80]
cmp eax, dword [esp + 0x10]
jne 0x563ee2
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
call fcn.00562c00
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x74
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop esi
pop edi
mov eax, 0x8004e009
pop ebp
add esp, 0x74
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop esi
pop edi
mov eax, 0x8004e008
pop ebp
add esp, 0x74
ret 4
pop esi
pop edi
mov eax, 0x8004e008
pop ebp
add esp, 0x74
ret 4