Function at 0x433990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x500c
call fcn.00435010
mov eax, dword [0x452f2c]
push esi
push edi
mov cl, byte [eax + 0x32f]
test cl, cl
je 0x433afa
mov edx, dword [0x455b38]
push ebx
xor ebx, ebx
mov esi, 6
mov ax, word [edx + 0x1e631]
mov word [ebp - 0x280c], ax
mov ecx, dword [edx + 0x1e633]
mov dword [ebp - 0x280a], ecx
mov dword [ebp - 4], ebx
cmp word [edx + 0x28], bx
jbe 0x433a47
lea edi, [ebp - 0x2806]
jmp 0x4339ee
mov edi, dword [ebp - 0xc]
mov ecx, dword [edx + 0x1e637]
mov eax, ebx
shl eax, 8
add eax, ebx
add esi, 2
shl eax, 1
mov dword [ebp - 8], esi
add edi, 2
mov cx, word [eax + ecx]
mov dword [ebp - 0xc], edi
mov word [edi - 2], cx
mov ecx, dword [edx + 0x1e637]
lea esi, [eax + ecx + 2]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov eax, 0x200
add ecx, eax
add edi, eax
inc ebx
xor eax, eax
mov dword [ebp - 4], ebx
mov ax, word [edx + 0x28]
cmp ebx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edi
mov esi, ecx
jb 0x4339eb
xor eax, eax
xor ecx, ecx
xor edi, edi
mov dword [ebp - 4], eax
mov cx, word [edx + 0x28]
mov di, word [edx + 0x2a]
imul ecx, edi
test ecx, ecx
pop ebx
jbe 0x433a8c
mov ecx, dword [edx + 0x1e63b]
add esi, 2
xor edi, edi
mov cx, word [ecx + eax*2]
inc eax
mov word [ebp + esi - 0x280e], cx
xor ecx, ecx
mov dword [ebp - 4], eax
mov cx, word [edx + 0x28]
mov di, word [edx + 0x2a]
imul ecx, edi
cmp eax, ecx
jb 0x433a60
lea edx, [ebp - 4]
lea eax, [ebp - 0x500c]
push edx
lea ecx, [ebp - 0x280c]
push eax
push ecx
push esi
call fcn.004316f0
mov edx, dword [0x452f2c]
mov eax, dword [edx]
push eax
push esi
mov esi, dword [sym.imp.MSVCRT.dll__putw]
call esi
mov ecx, dword [0x452f2c]
mov eax, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push eax
call esi
mov ecx, dword [0x452f2c]
mov eax, dword [ebp - 4]
mov edx, dword [ecx]
lea ecx, [ebp - 0x500c]
push edx
push eax
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, dword [ebp - 4]
add esp, 0x30
cmp eax, ecx
je 0x433c03
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [eax]
mov eax, dword [0x455b38]
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
push edx
push 2
add eax, 0x1e631
push 1
push eax
call esi
add esp, 0x10
cmp eax, 2
je 0x433b27
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x452f2c]
mov eax, dword [0x455b38]
add eax, 0x1e633
mov edx, dword [ecx]
push edx
push 4
push 1
push eax
call esi
add esp, 0x10
cmp eax, 4
je 0x433b54
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x455b38]
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp word [eax + 0x28], cx
jbe 0x433ba7
mov edx, dword [0x452f2c]
mov eax, dword [eax + 0x1e637]
mov edx, dword [edx]
push edx
mov edx, ecx
shl edx, 8
add edx, ecx
push 0x202
push 1
lea ecx, [eax + edx*2]
push ecx
call esi
add esp, 0x10
cmp eax, 0x202
jne 0x433b49
mov ecx, dword [ebp - 4]
mov eax, dword [0x455b38]
inc ecx
xor edx, edx
mov dword [ebp - 4], ecx
mov dx, word [eax + 0x28]
cmp ecx, edx
jb 0x433b64
xor ecx, ecx
xor edx, edx
xor edi, edi
mov dword [ebp - 4], ecx
mov dx, word [eax + 0x2a]
mov di, word [eax + 0x28]
imul edx, edi
test edx, edx
jbe 0x433c03
mov edx, dword [0x452f2c]
mov eax, dword [eax + 0x1e63b]
mov edx, dword [edx]
lea ecx, [eax + ecx*2]
push edx
push 2
push 1
push ecx
call esi
add esp, 0x10
cmp eax, 2
jne 0x433b49
mov ecx, dword [ebp - 4]
mov eax, dword [0x455b38]
inc ecx
xor edx, edx
xor edi, edi
mov dword [ebp - 4], ecx
mov dx, word [eax + 0x2a]
mov di, word [eax + 0x28]
imul edx, edi
cmp ecx, edx
jb 0x433bbf
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret