Function at 0x416e30
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 0x440f64
push eax
mov dword [esp + 0x2c], edi
call fcn.004061c0
mov eax, dword [ebx]
add esp, 8
cmp eax, edi
jne 0x417246
mov eax, dword [ebx + 0x214]
mov dword [esp + 0x10], edi
cmp eax, edi
je 0x4172cc
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x430df4
push eax
call dword [ecx]
test eax, eax
jl 0x416e92
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.004174a0
test eax, eax
jl 0x4171bc
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.0041d32e
add esp, 4
mov ebp, eax
lea ecx, [esp + 0x14]
push ebp
push ecx
mov ecx, ebx
call fcn.004174a0
test eax, eax
jl 0x4171ae
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 0x416f3b
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x416f5a
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 0x416f5f
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 0x416f9d
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xa
mov dword [esp + 0x10], eax
jle 0x416f37
jmp 0x4171ac
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 0x417153
cmp esi, 0x18
je 0x416fd1
cmp esi, 0x20
jne 0x417153
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 0x41700d
mov edx, dword [ebx + 0x230]
push edx
call fcn.0041d33c
push edi
call fcn.0041d32e
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 0x417092
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 0x4170c6
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 0x417077
jmp 0x4170c6
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 0x4170de
mov dword [esp + 0x10], 3
jmp 0x41710e
cmp edx, 0xb0
jne 0x4171e3
mov eax, dword [ebx + 0x230]
mov dword [esp + 0x10], 3
add eax, 0x28
mov esi, 0xa0
push eax
mov edi, 0x78
call fcn.00417e40
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x41713d
mov dword [esp + 0x1c], eax
mov edx, dword [ebx + 0x230]
push edi
add edx, 0x28
push esi
push edx
call fcn.00417f60
mov eax, dword [esp + 0x28]
add esp, 0xc
add esi, esi
add edi, edi
dec eax
mov dword [esp + 0x1c], eax
jne 0x41711a
mov eax, dword [ebx + 0x230]
add eax, 0x28
push eax
call fcn.00417ed0
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.00417540
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 0x4171bc
push ebp
call fcn.0041d33c
add esp, 4
mov eax, dword [esp + 0x28]
pop ebp
cmp eax, edi
je 0x4172cc
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 0x4171f8
mov dword [esp + 0x10], 2
jmp 0x41710e
cmp edx, 0x160
jne 0x417226
mov ecx, dword [ebx + 0x230]
mov dword [esp + 0x10], 2
add ecx, 0x28
mov esi, 0x140
push ecx
mov edi, 0xf0
call fcn.00417db0
jmp 0x41710b
cmp edx, 0x280
jne 0x41723b
mov dword [esp + 0x10], 1
jmp 0x41710e
cmp edx, 0x500
jmp 0x41714f
cmp dword [ebx + 0x220], edi
je 0x4172cc
cmp dword [ebx + 0x21c], edi
je 0x4172cc
mov ecx, 0x440f58
call fcn.00410880
mov eax, dword [ebx + 0x220]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
push edx
mov ecx, dword [eax]
push 0x430504
push eax
call dword [ecx]
test eax, eax
jl 0x4172cc
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 0x4310a4
push 1
push eax
push ebx
call dword [ecx + 0x2c]
test eax, eax
jl 0x4172c2
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