Function at 0x416a30
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44e932
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x45e200]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push esi
push edi
mov eax, dword [0x45e200]
xor eax, esp
push eax
lea eax, [esp + 0x1e8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
cmp eax, edi
je 0x4172eb
lea eax, [esp + 0x7c]
push eax
call fcn.0041fad0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1f0], edi
cmp dword [ecx + 0x424], edi
jne 0x416be1
mov eax, ebx
call fcn.004123b0
test eax, eax
je 0x4172d7
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
lea ebx, [esp + 0x20]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.00412750
test eax, eax
je 0x4172d7
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], eax
call fcn.00404320
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1f4], 1
call fcn.00402a00
mov eax, dword [esp + 0x2c]
mov ebx, 0x10
cmp dword [esp + 0x40], ebx
jae 0x416b19
lea eax, [esp + 0x2c]
push 0x455808
push eax
call fcn.00449c0a
mov edi, dword [esp + 0x1c]
mov esi, eax
add esp, 8
test esi, esi
je 0x416b48
mov eax, dword [esp + 0x18]
push esi
push 1
push eax
push edi
call fcn.00449d83
push esi
call fcn.00446406
add esp, 0x14
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x40], ebx
jae 0x416b56
lea edx, [esp + 0x2c]
mov eax, edx
lea esi, [eax + 1]
jmp 0x416b60
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416b60
sub eax, esi
push eax
push edx
lea ecx, [esp + 0xc4]
call fcn.004048c0
lea ecx, [esp + 0x7c]
push ecx
call fcn.0041fc80
test al, al
mov eax, dword [esp + 0x2c]
jne 0x416bb1
cmp dword [esp + 0x40], ebx
jae 0x416b93
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call fcn.00432a62
add esp, 4
lea ecx, [esp + 0x28]
call fcn.00404350
jmp 0x4172d7
cmp dword [esp + 0x40], ebx
jae 0x416bbb
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call fcn.00432a62
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x1f0], 0
call fcn.00404350
jmp 0x416d22
lea edx, [esp + 0x14]
push edx
push esi
push ecx
lea ebx, [esp + 0x24]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
call fcn.00412750
test eax, eax
je 0x4172d7
mov eax, dword [esp + 0x1c]
xor ebx, ebx
push 0xffffffffffffffff
add eax, 4
push ebx
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.00404420
mov eax, esi
mov byte [esp + 0x1f0], 2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x416c38
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x30]
call fcn.00403330
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x2c]
jae 0x416c5b
lea eax, [esp + 0x2c]
push 0x455808
push eax
call fcn.00449c0a
mov edi, dword [esp + 0x20]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x416c8a
mov eax, dword [esp + 0x14]
push esi
push 1
push eax
push edi
call fcn.00449d83
push esi
call fcn.00446406
add esp, 0x14
cmp dword [esp + 0x40], 0x10
mov edx, dword [esp + 0x2c]
jae 0x416c99
lea edx, [esp + 0x2c]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x416ca0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0xc4]
call fcn.004048c0
lea ecx, [esp + 0x7c]
push ecx
call fcn.0041fc80
test al, al
mov eax, dword [esp + 0x2c]
jne 0x416cf2
cmp dword [esp + 0x40], 0x10
jae 0x416cd4
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call fcn.00432a62
add esp, 4
lea ecx, [esp + 0x28]
call fcn.00404350
jmp 0x4172d7
cmp dword [esp + 0x40], 0x10
jae 0x416cfd
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call fcn.00432a62
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x1f0], bl
call fcn.00404350
mov ebx, 0x10
push str.width
lea edx, [esp + 0x80]
xor eax, eax
push edx
mov edx, str.window
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call fcn.004202a0
push eax
call fcn.00432a83
add esp, 4
mov esi, eax
push str.height
lea eax, [esp + 0x80]
push eax
mov edx, str.window
call fcn.004202a0
push eax
call fcn.00432a83
mov edi, dword [esp + 0x28]
mov edx, dword [edi]
add esp, 4
push eax
mov eax, dword [edx + 0x24]
push esi
mov ecx, edi
call eax
push str.border
lea ecx, [esp + 0x80]
push ecx
mov edx, str.window
call fcn.004202a0
push eax
call fcn.00432a83
mov edx, dword [edi]
add esp, 4
push eax
mov eax, dword [edx + 0x2c]
mov ecx, edi
call eax
push str.titleheight
lea ecx, [esp + 0x80]
push ecx
mov edx, str.window
call fcn.004202a0
push eax
call fcn.00432a83
mov edx, dword [edi]
add esp, 4
push eax
mov eax, dword [edx + 0x34]
mov ecx, edi
call eax
push str.titlebottonheight
lea ecx, [esp + 0x80]
push ecx
mov edx, str.window
call fcn.004202a0
push eax
call fcn.00432a83
mov edx, dword [edi]
add esp, 4
push eax
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
push str.background
lea ecx, [esp + 0x80]
push ecx
mov edx, str.window
call fcn.004202a0
push eax
lea ecx, [esp + 0x64]
call fcn.004049d0
mov byte [esp + 0x1f0], 3
cmp dword [esp + 0x74], 0
je 0x416e3f
lea edx, [esp + 0x7c]
push edx
call fcn.00420450
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x40]
mov ecx, edi
call eax
push str.backImage
lea ecx, [esp + 0x80]
push ecx
mov edx, str.window
call fcn.004202a0
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x416e60
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x416e60
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x68]
call fcn.004048c0
cmp dword [esp + 0x74], 0
je 0x416ec2
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x78], ebx
jae 0x416e89
lea eax, [esp + 0x64]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
lea ebx, [esp + 0x20]
call fcn.00412750
test eax, eax
je 0x416ebd
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
mov esi, dword [esp + 0x14]
mov edx, dword [edx + 0x18]
push eax
push esi
mov ecx, edi
call edx
push esi
call fcn.00432a62
add esp, 4
mov ebx, 0x10
push str.title
lea eax, [esp + 0x80]
push eax
mov edx, str.window
call fcn.004202a0
mov ecx, eax
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x416ee0
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x68]
call fcn.004048c0
cmp dword [esp + 0x74], 0
je 0x416f4b
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x60]
push ecx
push edx
lea esi, [esp + 0x30]
call fcn.00418db0
add esp, 8
mov byte [esp + 0x1f0], 4
cmp dword [eax + 0x18], ebx
jb 0x416f23
mov eax, dword [eax + 4]
jmp 0x416f26
add eax, 4
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x48]
mov ecx, edi
call eax
mov byte [esp + 0x1f0], 3
cmp dword [esp + 0x40], ebx
jb 0x416f4b
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0043279a
add esp, 4
push str.transparent
lea edx, [esp + 0x80]
push edx
mov edx, str.window
call fcn.004202a0
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x416f67
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x68]
call fcn.004048c0
cmp dword [esp + 0x74], 0
je 0x416fa5
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x78], ebx
jae 0x416f90
lea eax, [esp + 0x64]
mov esi, dword [edi]
push eax
add esi, 0x50
call fcn.00432a83
add esp, 4
push eax
mov eax, dword [esi]
mov ecx, edi
call eax
push str.chagesize
lea ecx, [esp + 0x80]
push ecx
mov edx, str.window
call fcn.004202a0
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x416fc1
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x68]
call fcn.004048c0
cmp dword [esp + 0x74], 0
je 0x416fff
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x78], ebx
jae 0x416fea
lea eax, [esp + 0x64]
mov esi, dword [edi]
push eax
add esi, 0x54
call fcn.00432a83
mov edx, dword [esi]
add esp, 4
push eax
mov ecx, edi
call edx
push str.layercount
lea eax, [esp + 0x80]
push eax
mov edx, str.window
call fcn.004202a0
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x417020
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x417020
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x68]
call fcn.004048c0
cmp dword [esp + 0x74], 0
je 0x4170db
cmp dword [esp + 0x78], 0x10
mov eax, dword [esp + 0x64]
jae 0x41704e
lea eax, [esp + 0x64]
push eax
call fcn.00432a83
add esp, 4
xor ebx, ebx
mov dword [esp + 0x20], eax
test eax, eax
jle 0x4170db
push ebx
push str.layer__d
lea ecx, [esp + 0xe4]
push 0xff
push ecx
call fcn.004344c0
add esp, 0x10
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0x80]
push eax
mov edx, str.window
call fcn.004202a0
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x4170a0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4170a0
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x68]
call fcn.004048c0
cmp dword [esp + 0x74], 0
je 0x4170d4
cmp dword [esp + 0x78], 0x10
mov edx, dword [esp + 0x64]
jae 0x4170ca
lea edx, [esp + 0x64]
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00412a60
inc ebx
cmp ebx, dword [esp + 0x20]
jl 0x417061
mov eax, dword [esp + 0xb8]
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
test eax, eax
jle 0x4172ae
push ecx
lea edi, [esp + 0x80]
call fcn.004201f0
xor ebx, ebx
mov edi, 0xf
mov ecx, eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x417120
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x4c]
call fcn.004048c0
mov byte [esp + 0x1f0], 5
mov esi, dword [esp + 0x58]
cmp esi, ebx
jne 0x41716d
mov byte [esp + 0x1f0], 3
cmp dword [esp + 0x5c], 0x10
jb 0x417160
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0043279a
add esp, 4
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
jmp 0x417296
mov eax, esi
cmp esi, 6
jb 0x417179
mov eax, 6
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x48]
mov edx, ebx
cmp edi, 0x10
jae 0x41718c
lea edx, [esp + 0x48]
mov ecx, str.window
call fcn.004042a0
test eax, eax
jne 0x4171cc
cmp esi, 6
jb 0x4171cc
cmp esi, 6
setne al
test eax, eax
jne 0x4171cc
mov byte [esp + 0x1f0], 3
cmp edi, 0x10
jb 0x4171bf
push ebx
call fcn.0043279a
add esp, 4
mov dword [esp + 0x58], 0
jmp 0x41728e
mov eax, ebx
cmp edi, 0x10
jae 0x4171d7
lea eax, [esp + 0x48]
push eax
call fcn.00432a83
mov esi, eax
add esp, 4
cmp esi, 0x3e8
jae 0x417200
mov byte [esp + 0x1f0], 3
cmp dword [esp + 0x5c], 0x10
jb 0x4171bf
mov edx, dword [esp + 0x48]
push edx
jmp 0x4171b7
mov edx, dword [esp + 0x48]
mov edi, 0x10
cmp dword [esp + 0x5c], edi
jae 0x417213
lea edx, [esp + 0x48]
push str.type
lea eax, [esp + 0x80]
push eax
call fcn.004202a0
push eax
call fcn.00432a83
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
add esp, 4
push esi
push eax
mov eax, dword [edx + 0x84]
call eax
xor esi, esi
cmp eax, esi
jne 0x417259
mov byte [esp + 0x1f0], 3
cmp dword [esp + 0x5c], edi
jb 0x41728a
mov ecx, dword [esp + 0x48]
push ecx
jmp 0x417282
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
push edx
lea edx, [esp + 0x84]
call fcn.004149c0
mov byte [esp + 0x1f0], 3
cmp dword [esp + 0x5c], edi
jb 0x41728a
mov eax, dword [esp + 0x48]
push eax
call fcn.0043279a
add esp, 4
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 0xf
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, dword [esp + 0x20]
mov byte [esp + 0x48], 0
mov dword [esp + 0x14], ecx
jl 0x4170f4
cmp dword [esp + 0x78], 0x10
jb 0x4172c2
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0043279a
add esp, 4
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1f0], 0xffffffff
call fcn.0041fbd0
xor eax, eax
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.0043270e
mov esp, ebp
pop ebp
ret 0xc