Function at 0x49eb90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x732218
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x819540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x124], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x104], eax
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], ecx
push 3
mov edx, dword [ebp - 0x104]
push edx
lea ecx, [ebp - 0x100]
call fcn.00403e30
lea eax, [ebp - 0x100]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
mov edx, dword [ecx]
mov dword [ebp - 0x118], edx
push 1
push 2
push 3
push 0
mov eax, dword [ebp - 0x118]
push eax
call fcn.0049fdd0
add esp, 0x14
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0x11c], edx
lea eax, [ebp - 0xfc]
cmp dword [ebp - 0x11c], eax
je 0x49ec51
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.005b21d0
add esp, 4
cmp dword [ebp - 0x7c], 0
je 0x49eed7
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
shl ecx, 3
imul ecx, ecx, 3
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
xor edx, edx
mov ecx, 4
div ecx
test edx, edx
je 0x49ec90
mov edx, dword [ebp - 0x24]
shr edx, 2
lea eax, [edx*4 + 4]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
imul ecx, dword [ebp - 0x38]
shl ecx, 3
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.005b2106
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x49ecc6
push str.Out_of_memory
call fcn.005b51f8
add esp, 4
push 0xffffffffffffffff
call fcn.005bc5b5
mov eax, dword [ebp - 0x3c]
push eax
push 0xff
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.005b33a0
add esp, 0xc
mov edx, 0x4d42
mov word [ebp - 0x4c], dx
mov eax, dword [ebp - 0x3c]
add eax, 0x36
mov dword [ebp - 0x4a], eax
xor ecx, ecx
mov word [ebp - 0x46], cx
xor edx, edx
mov word [ebp - 0x44], dx
mov dword [ebp - 0x42], 0x36
mov dword [ebp - 0x74], 0x28
mov eax, dword [ebp - 0x38]
shl eax, 3
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x38]
shl ecx, 3
neg ecx
mov dword [ebp - 0x6c], ecx
mov edx, 1
mov word [ebp - 0x68], dx
mov eax, 0x18
mov word [ebp - 0x66], ax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], 0
jmp 0x49ed72
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x38]
jae 0x49ee4b
mov edx, dword [ebp - 0x24]
imul edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
lea ecx, [eax + edx*8]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], 0
jmp 0x49eda0
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x38]
jae 0x49ee46
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
and edx, 1
je 0x49ee2f
mov dword [ebp - 0x30], 0
jmp 0x49edc9
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 8
jae 0x49ee2f
mov dword [ebp - 0x1c], 0
jmp 0x49ede1
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 8
jae 0x49ee2d
mov edx, dword [ebp - 0x1c]
imul edx, edx, 3
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x30]
mov byte [edx + eax], 0xf
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 3
mov edx, dword [ebp - 0x2c]
lea eax, [edx + ecx + 1]
mov ecx, dword [ebp - 0x24]
imul ecx, dword [ebp - 0x30]
mov byte [eax + ecx], 0xf
mov edx, dword [ebp - 0x1c]
imul edx, edx, 3
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + edx + 2]
mov edx, dword [ebp - 0x24]
imul edx, dword [ebp - 0x30]
mov byte [ecx + edx], 0xf
jmp 0x49edd8
jmp 0x49edc0
mov eax, dword [ebp - 0x2c]
add eax, 0x18
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x49ed97
jmp 0x49ed69
push 0x75cb2c
push str.c:DSETempFilesdlpout_test.bmp
lea edx, [ebp - 0x20]
push edx
call fcn.005bc24a
add esp, 0xc
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x49eeb6
mov eax, dword [ebp - 0x20]
push eax
push 1
push 0xe
lea ecx, [ebp - 0x4c]
push ecx
call fcn.005bc0ed
add esp, 0x10
mov edx, dword [ebp - 0x20]
push edx
push 1
push 0x28
lea eax, [ebp - 0x74]
push eax
call fcn.005bc0ed
add esp, 0x10
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push 1
mov eax, dword [ebp - 0x34]
push eax
call fcn.005bc0ed
add esp, 0x10
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.005bbf0f
add esp, 4
jmp 0x49eebd
push 0xffffffffffffffff
call fcn.005bc5b5
mov edx, dword [ebp - 0x34]
push edx
call fcn.005b21d0
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
call fcn.0049ef00
add esp, 4
jmp 0x49eede
push 0xffffffffffffffff
call fcn.005bc5b5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402d40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4