Function at 0x4df375
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x6a2c70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, 0x6bee08
mov dword [ebp - 0x130], eax
push 0x77d
mov ecx, ebx
call fcn.0043f7a8
mov esi, eax
test esi, esi
je 0x4df3db
mov ecx, esi
call fcn.00406e4e
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, esi
mov dword [ebp - 0x24], eax
call fcn.00406e55
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov dword [ebp - 0x20], eax
push 0x84d
mov ecx, ebx
call fcn.0043f7a8
mov esi, eax
test esi, esi
je 0x4df42d
mov ecx, esi
call fcn.00406e4e
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.00406e55
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, esi
mov dword [ebp - 0x10], eax
call fcn.00415101
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0xc], eax
push 0x1db
mov ecx, ebx
call fcn.0043f7a8
mov esi, eax
test esi, esi
je 0x4df488
mov ecx, esi
call fcn.00406e4e
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, esi
mov dword [ebp - 0x124], eax
call fcn.00406e55
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, esi
mov dword [ebp - 0x120], eax
call fcn.0044670e
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x11c], eax
push 0x491
mov ecx, ebx
call fcn.0043f7a8
mov esi, eax
test esi, esi
je 0x4df4e3
mov ecx, esi
call fcn.00406e4e
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, esi
mov dword [ebp - 0x114], eax
call fcn.00406e55
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, esi
mov dword [ebp - 0x110], eax
call fcn.0044670e
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x10c], eax
push 0xed
mov ecx, ebx
call fcn.0043f7a8
mov edi, eax
test edi, edi
je 0x4df552
mov ecx, edi
call fcn.00406e4e
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, edi
mov dword [ebp - 0xe4], eax
call fcn.00406e55
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, edi
mov dword [ebp - 0xe0], eax
call fcn.0044670e
neg eax
mov ecx, edi
sbb esi, esi
neg esi
mov dword [ebp - 0xdc], esi
call fcn.004c0877
test eax, eax
je 0x4df552
or esi, 2
mov dword [ebp - 0xdc], esi
push 0x124
mov ecx, ebx
call fcn.0043f7a8
mov edi, eax
test edi, edi
je 0x4df5be
mov ecx, edi
call fcn.0044670e
neg eax
mov ecx, edi
sbb esi, esi
neg esi
mov dword [ebp - 0xcc], esi
call fcn.004de926
cmp eax, 1
jne 0x4df588
or esi, 4
jmp 0x4df5a8
mov ecx, edi
call fcn.004de926
cmp eax, 2
jne 0x4df599
or esi, 8
jmp 0x4df5a8
mov ecx, edi
call fcn.004de926
cmp eax, 4
jne 0x4df5ae
or esi, 0x10
mov dword [ebp - 0xcc], esi
mov ecx, edi
call fcn.004bd370
movzx eax, al
mov dword [ebp - 0xc8], eax
push 0x5d0
mov ecx, ebx
call fcn.0043f7a8
test eax, eax
je 0x4df5fc
mov ecx, eax
call fcn.0044670e
test eax, eax
je 0x4df5e5
or dword [ebp - 0xcc], 0x100
jmp 0x4df5fc
mov eax, dword [ebp - 0xcc]
mov ecx, 0x100
test ecx, eax
je 0x4df5fc
xor eax, ecx
mov dword [ebp - 0xcc], eax
push 0xf3
mov ecx, ebx
call fcn.0043f7a8
mov edi, eax
test edi, edi
je 0x4df68d
mov ecx, edi
call fcn.00406e4e
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, edi
mov dword [ebp - 0xc4], eax
call fcn.00406e55
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, edi
mov dword [ebp - 0xc0], eax
call fcn.0044670e
mov esi, eax
mov ecx, edi
neg esi
sbb esi, esi
neg esi
mov dword [ebp - 0xbc], esi
call fcn.0044389f
cmp al, 1
jne 0x4df669
or esi, 4
jmp 0x4df687
mov ecx, edi
call fcn.0044389f
cmp al, 2
jne 0x4df679
or esi, 8
jmp 0x4df687
mov ecx, edi
call fcn.0044389f
cmp al, 3
jne 0x4df68d
or esi, 0x10
mov dword [ebp - 0xbc], esi
push 0x61
mov ecx, ebx
call fcn.0043f7a8
mov esi, eax
test esi, esi
je 0x4df6e5
mov ecx, esi
call fcn.00406e4e
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, esi
mov dword [ebp - 0xb4], eax
call fcn.00406e55
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, esi
mov dword [ebp - 0xb0], eax
call fcn.0044670e
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0xac], eax
push 0xc7
mov ecx, ebx
call fcn.0043f7a8
mov ebx, eax
test ebx, ebx
je 0x4df7b1
mov ecx, ebx
call fcn.00406e4e
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, ebx
mov dword [ebp - 0xa4], eax
call fcn.00406e55
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, ebx
mov dword [ebp - 0xa0], eax
call fcn.0044670e
mov esi, eax
mov ecx, ebx
neg esi
sbb esi, esi
neg esi
mov dword [ebp - 0x9c], esi
call fcn.0044389f
cmp al, 1
jne 0x4df79d
or esi, 4
mov ecx, 0x6af520
mov dword [ebp - 0x9c], esi
call fcn.00418c2b
mov edi, eax
mov ecx, eax
call fcn.0044389f
cmp al, 1
jne 0x4df776
or esi, 0x20
jmp 0x4df797
mov ecx, edi
call fcn.0044389f
cmp al, 2
jne 0x4df786
or esi, 0x40
jmp 0x4df797
mov ecx, edi
call fcn.0044389f
cmp al, 3
jne 0x4df79d
or esi, 0x80
mov dword [ebp - 0x9c], esi
mov ecx, ebx
call fcn.004ed00c
mov ecx, eax
call fcn.004de94a
mov dword [ebp - 0x98], eax
mov ebx, 0x6bee08
push 0x350
mov ecx, ebx
call fcn.0043f7a8
mov edi, eax
test edi, edi
je 0x4df853
mov ecx, edi
call fcn.00406e4e
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, edi
mov dword [ebp - 0x94], eax
call fcn.00406e55
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, edi
mov dword [ebp - 0x90], eax
call fcn.0044670e
mov esi, eax
mov ecx, edi
neg esi
sbb esi, esi
neg esi
mov dword [ebp - 0x8c], esi
call fcn.0044389f
cmp al, 1
jne 0x4df82b
or esi, 4
mov dword [ebp - 0x8c], esi
mov ecx, edi
call fcn.0044389f
cmp al, 2
jne 0x4df83f
or esi, 8
mov dword [ebp - 0x8c], esi
mov ecx, edi
call fcn.0044389f
cmp al, 3
jne 0x4df853
or esi, 0x10
mov dword [ebp - 0x8c], esi
push 0x510
mov ecx, ebx
call fcn.0043f7a8
mov esi, eax
test esi, esi
je 0x4df8a8
mov ecx, esi
call fcn.00406e4e
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, esi
mov dword [ebp - 0x84], eax
call fcn.00406e55
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, esi
mov dword [ebp - 0x80], eax
call fcn.0044670e
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x7c], eax
push 0x4a8
mov ecx, ebx
call fcn.0043f7a8
mov esi, eax
test esi, esi
je 0x4df90c
mov ecx, esi
call fcn.00406e4e
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, esi
mov dword [ebp - 0x74], eax
call fcn.00406e55
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, esi
mov dword [ebp - 0x70], eax
call fcn.0044670e
test eax, eax
je 0x4df908
xor eax, eax
mov ecx, 0x6d3c50
inc eax
push eax
mov dword [ebp - 0x6c], eax
call fcn.0040cbc0
jmp 0x4df90c
and dword [ebp - 0x6c], 0
push 0x214
mov ecx, ebx
call fcn.0043f7a8
mov esi, eax
test esi, esi
je 0x4df97e
mov ecx, esi
call fcn.00406e4e
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, esi
mov dword [ebp - 0x64], eax
call fcn.00406e55
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, 0x6af520
mov dword [ebp - 0x60], eax
call fcn.00414f6b
mov esi, eax
test esi, esi
je 0x4df97e
mov ecx, esi
call fcn.00426612
neg eax
mov ecx, esi
sbb eax, eax
neg eax
mov dword [ebp - 0x5c], eax
call fcn.004c0908
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x58], eax
mov edi, 0x6d48a0
mov ecx, edi
call fcn.00414d29
mov esi, eax
test esi, esi
je 0x4df9ca
mov ecx, esi
call fcn.00406e4e
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, esi
mov dword [ebp - 0x54], eax
call fcn.00406e55
fstp dword [ebp - 0x128]
cvttss2si eax, dword [ebp - 0x128]
mov ecx, edi
mov dword [ebp - 0x50], eax
call fcn.004de93f
mov dword [ebp - 0x48], eax
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x130]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4dfa57
mov ecx, 0x6d70e8
mov dword [ebp - 0x138], 0x6111101
call fcn.004de943
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
movzx ecx, al
lea eax, [ebp - 0x12c]
push ebx
push eax
push 4
lea eax, [ebp - 0x138]
mov dword [ebp - 0x134], ecx
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x12c]
push eax
push 4
lea eax, [ebp - 0x134]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x12c]
push eax
push 0x120
lea eax, [ebp - 0x124]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054ee82
mov esp, ebp
pop ebp
ret 4