Function at 0x416ca0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x54
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [ebx + 0x20c]
push 0x43ff34
push eax
mov dword [esp + 0x2c], edi
call fcn.004060f0
mov eax, dword [ebx]
add esp, 8
cmp eax, edi
jne 0x4170b6
mov eax, dword [ebx + 0x214]
mov dword [esp + 0x10], edi
cmp eax, edi
je 0x41713c
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x42fdf4
push eax
call dword [ecx]
test eax, eax
jl 0x416d02
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov dword [esp + 0x24], 1
push ebp
lea edx, [esp + 0x10]
push edi
push edx
mov ecx, ebx
call fcn.00417310
test eax, eax
jl 0x41702c
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.0041d1ae
add esp, 4
mov ebp, eax
lea ecx, [esp + 0x14]
push ebp
push ecx
mov ecx, ebx
call fcn.00417310
test eax, eax
jl 0x41701e
lea edx, [esp + 0x44]
mov dword [esp + 0x10], edi
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4e]
mov edx, dword [esp + 0x4c]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x4e]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x4e]
push edx
mov edx, dword [esp + 0x50]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
lea eax, [ebx + 4]
push edx
lea esi, [ebx + 0x108]
push eax
push str._sSnapshot__d__02d_02d__02d_02d_02d
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
jmp 0x416dab
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x416dca
push edi
lea ecx, [esp + 0x58]
push str.__02d.bmp
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x54]
push edx
jmp 0x416dcf
push str..bmp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x20], edi
jne 0x416e0d
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xa
mov dword [esp + 0x10], eax
jle 0x416da7
jmp 0x41701c
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x22c]
xor esi, esi
mov dword [esp + 0x28], ebp
mov si, word [ebp + 0xe]
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x416fc3
cmp esi, 0x18
je 0x416e41
cmp esi, 0x20
jne 0x416fc3
mov eax, dword [ebx + 0x228]
imul eax, dword [ebx + 0x224]
lea edi, [eax + eax*2 + 0x28]
mov eax, dword [ebx + 0x234]
cmp eax, edi
je 0x416e7d
mov edx, dword [ebx + 0x230]
push edx
call fcn.0041d1bc
push edi
call fcn.0041d1ae
add esp, 8
mov dword [ebx + 0x230], eax
mov dword [ebx + 0x234], edi
mov ecx, dword [ebx + 0x228]
mov eax, dword [ebx + 0x230]
mov dword [esp + 0x14], edi
mov dword [ebp + 8], ecx
mov edx, dword [ebx + 0x224]
mov dword [esp + 0x28], eax
mov dword [ebp + 4], edx
mov word [ebp + 0xe], 0x18
mov eax, dword [ebx + 0x228]
imul eax, dword [ebx + 0x224]
cmp esi, 0x20
lea eax, [eax + eax*2]
mov dword [ebp + 0x14], eax
jne 0x416f02
mov edi, dword [ebx + 0x230]
mov edx, dword [esp + 0x10]
mov ecx, 0xa
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x230]
imul ecx, edx
add eax, 0x28
lea esi, [ebp + 0x28]
test ecx, ecx
jle 0x416f36
mov edi, ecx
mov cl, byte [esi]
add esi, 4
mov byte [eax], cl
mov cl, byte [esi - 3]
mov byte [eax + 1], cl
mov cl, byte [esi - 2]
mov byte [eax + 2], cl
add eax, 3
dec edi
jne 0x416ee7
jmp 0x416f36
mov eax, esi
mov edi, dword [ebx + 0x230]
imul eax, dword [esp + 0x1c]
imul eax, dword [esp + 0x10]
cdq
and edx, 7
mov esi, ebp
add eax, edx
mov ecx, eax
sar ecx, 3
add ecx, 0x28
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
cmp edx, 0xa0
mov esi, edx
jne 0x416f4e
mov dword [esp + 0x10], 3
jmp 0x416f7e
cmp edx, 0xb0
jne 0x417053
mov eax, dword [ebx + 0x230]
mov dword [esp + 0x10], 3
add eax, 0x28
mov esi, 0xa0
push eax
mov edi, 0x78
call fcn.00417cc0
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x416fad
mov dword [esp + 0x1c], eax
mov edx, dword [ebx + 0x230]
push edi
add edx, 0x28
push esi
push edx
call fcn.00417de0
mov eax, dword [esp + 0x28]
add esp, 0xc
add esi, esi
add edi, edi
dec eax
mov dword [esp + 0x1c], eax
jne 0x416f8a
mov eax, dword [ebx + 0x230]
add eax, 0x28
push eax
call fcn.00417d50
add esp, 4
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, ebx
call fcn.004173b0
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x30]
push 0
push eax
lea ecx, [esp + 0x3c]
push 0xe
push ecx
push edi
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x30]
push 0
push edx
push eax
push ecx
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx + 0x20c]
push 0
push 0
push 0x403
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
xor edi, edi
cmp ebp, edi
pop esi
je 0x41702c
push ebp
call fcn.0041d1bc
add esp, 4
mov eax, dword [esp + 0x28]
pop ebp
cmp eax, edi
je 0x41713c
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
pop ebx
add esp, 0x54
ret
cmp edx, 0x140
jne 0x417068
mov dword [esp + 0x10], 2
jmp 0x416f7e
cmp edx, 0x160
jne 0x417096
mov ecx, dword [ebx + 0x230]
mov dword [esp + 0x10], 2
add ecx, 0x28
mov esi, 0x140
push ecx
mov edi, 0xf0
call fcn.00417c30
jmp 0x416f7b
cmp edx, 0x280
jne 0x4170ab
mov dword [esp + 0x10], 1
jmp 0x416f7e
cmp edx, 0x500
jmp 0x416fbf
cmp dword [ebx + 0x220], edi
je 0x41713c
cmp dword [ebx + 0x21c], edi
je 0x41713c
mov ecx, 0x43ff28
call fcn.004106f0
mov eax, dword [ebx + 0x220]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
push edx
mov ecx, dword [eax]
push 0x42f504
push eax
call dword [ecx]
test eax, eax
jl 0x41713c
mov eax, dword [ebx + 0x220]
mov ebx, dword [ebx + 0x21c]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], edi
mov ecx, dword [ebx]
push edx
push edi
push edi
push edi
push 0x4300a4
push 1
push eax
push ebx
call dword [ecx + 0x2c]
test eax, eax
jl 0x417132
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 8
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
pop ebx
add esp, 0x54
ret