Function at 0x4983a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x10]
xor ebx, ebx
cmp eax, ebx
jne 0x4985e8
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [ecx + 8]
cmp ecx, 0x20
jl 0x4983f3
cmp dword [esi], 0x6c7a6d61
jne 0x4983f3
cmp dword [esi + 4], 1
jbe 0x49840a
pop esi
lea eax, [ebx + 0x66]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4
pop esi
mov eax, 0x65
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0xc]
lea edx, [eax + 0x20]
cmp edx, ecx
je 0x49842b
pop esi
mov eax, 0x67
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 8]
push edi
mov dword [ebp - 0x30], eax
lea eax, [esi + 0x20]
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x18], bl
call fcn.00497d20
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00498070
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x49848d
cmp byte [ebp - 0x18], bl
je 0x498478
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x498478
push eax
call fcn.0051d538
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [esi + 8]
je 0x4984bd
lea ecx, [ebp - 0x20]
call fcn.00497e60
lea ecx, [ebp - 0x34]
call fcn.00497e60
pop edi
pop esi
mov eax, 0x69
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
xor eax, eax
push edx
push ecx
push edi
mov byte [ebp - 0x14], bl
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
call fcn.004b8cc0
lea eax, [esi + 0x10]
lea edx, [ebp - 0x14]
add esp, 0xc
mov ecx, 0x10
sub edx, eax
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x49854c
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x4984f0
mov eax, dword [ebp - 0x28]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x498576
cmp byte [ebp - 0x18], bl
je 0x498534
cmp edi, ebx
je 0x498534
push edi
call fcn.0051d538
add esp, 4
pop edi
pop esi
mov eax, 0x6b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4
cmp byte [ebp - 0x18], bl
je 0x49855e
cmp edi, ebx
je 0x49855e
push edi
call fcn.0051d538
add esp, 4
pop edi
pop esi
mov eax, 0x68
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x24]
push ecx
push edx
push edi
mov dword [ebp - 0x24], ebx
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x498599
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x24], eax
je 0x49859b
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x4985d1
cmp byte [ebp - 0x18], 0
je 0x4985b9
test edi, edi
je 0x4985b9
push edi
call fcn.0051d538
add esp, 4
pop edi
pop esi
mov eax, 0x6c
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4
cmp byte [ebp - 0x18], 0
je 0x4985e4
test edi, edi
je 0x4985e4
push edi
call fcn.0051d538
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4