Function at 0x4055e0
Capabilities:
Accept command line arguments
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dffb
mov eax, dword fs:[0]
push eax
mov eax, 0x2370
call fcn.00556c00
mov eax, dword [0x604e14]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x237c], ecx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, dword [ebp - 0x237c]
call fcn.00536fd7
push 0
call fcn.00539568
add esp, 4
call fcn.00538ba0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
lea ecx, [ebp - 0x648]
call fcn.00405ac0
push 0
lea eax, [ebp - 0x648]
push eax
mov ecx, dword [ebp - 0x237c]
add ecx, 0xa4
push ecx
call sub.gdiplus.dll_GdiplusStartup
push 0x104
lea edx, [ebp - 0x634]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
lea eax, [ebp - 0x42c]
push eax
push 0x606830
lea ecx, [ebp - 0x634]
push ecx
call fcn.00556bb2
add esp, 0x14
push 0x104
lea edx, [ebp - 0x42c]
push edx
push 0x606830
call fcn.00556957
add esp, 0xc
call fcn.0040e390
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x2140], eax
mov eax, dword [ebp - 0x2140]
push eax
call fcn.005560eb
add esp, 4
mov dword [ebp - 0x2144], eax
mov eax, dword [ebp - 0x2144]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00526059
add esp, 4
mov dword [ebp - 0x236c], eax
mov eax, dword [ebp - 0x236c]
mov dword [ebp - 0x213c], eax
mov dword [ebp - 0x220], str._cffscript
mov ecx, dword [ebp - 0x2140]
push ecx
mov edx, dword [ebp - 0x2144]
add edx, 1
push edx
mov eax, dword [ebp - 0x213c]
push eax
call fcn.0045eee0
add esp, 0xc
mov ecx, dword [ebp - 0x213c]
push ecx
call fcn.005568e7
add esp, 4
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x213c]
push eax
call fcn.004fb9b0
add esp, 8
mov dword [ebp - 0x2138], eax
cmp dword [ebp - 0x2138], 0
je 0x4058b9
mov ecx, dword [ebp - 0x2138]
sub ecx, dword [ebp - 0x213c]
mov dword [ebp - 0x2148], ecx
mov edx, dword [ebp - 0x220]
push edx
call fcn.005560eb
add esp, 4
mov ecx, dword [ebp - 0x2148]
lea edx, [ecx + eax*2]
add edx, dword [ebp - 0x2140]
mov dword [ebp - 0x2138], edx
mov eax, dword [ebp - 0x213c]
mov dword [ebp - 0x2370], eax
mov ecx, dword [ebp - 0x2370]
push ecx
call fcn.0052604e
add esp, 4
mov edx, dword [ebp - 0x2138]
push edx
call fcn.005560eb
add esp, 4
test eax, eax
jne 0x4057dc
xor eax, eax
jmp 0x405a4e
lea eax, [ebp - 0x225c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x2364]
push ecx
push 0
push 0x592c90
lea edx, [ebp - 0x225c]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x2364]
push eax
call fcn.00460c60
add esp, 0x1c
mov dword [ebp - 0x2154], eax
cmp dword [ebp - 0x2154], 0xffffffff
jne 0x40583d
xor eax, eax
jmp 0x405a4e
mov ecx, dword [ebp - 0x2138]
push ecx
call fcn.0045c6c0
add esp, 4
mov dword [ebp - 0x214c], eax
push 0
lea edx, [ebp - 0x2150]
push edx
mov eax, dword [ebp - 0x214c]
push eax
call fcn.00556680
add esp, 4
push eax
mov ecx, dword [ebp - 0x214c]
push ecx
mov edx, dword [ebp - 0x2154]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x214c]
push eax
call fcn.005565e6
add esp, 4
mov ecx, dword [ebp - 0x2154]
push ecx
call fcn.00460e10
add esp, 4
push 0
push 0
push 0
lea edx, [ebp - 0x2364]
push edx
call fcn.0045c980
add esp, 0x10
xor eax, eax
jmp 0x405a4e
mov eax, dword [ebp - 0x213c]
mov dword [ebp - 0x2374], eax
mov ecx, dword [ebp - 0x2374]
push ecx
call fcn.0052604e
add esp, 4
xor edx, edx
mov word [ebp - 0x21c], dx
cmp dword [0x60b1d0], 1
jle 0x405903
mov eax, dword [0x60b1d8]
mov ecx, dword [eax + 4]
push ecx
push 0x104
lea edx, [ebp - 0x21c]
push edx
call fcn.0045eee0
add esp, 0xc
movzx eax, word [ebp - 0x21c]
test eax, eax
je 0x4059ed
lea ecx, [ebp - 0x21c]
push ecx
call fcn.005560eb
add esp, 4
mov dword [ebp - 0x2368], eax
cmp dword [ebp - 0x2368], 5
jb 0x4059ed
mov edx, dword [ebp - 0x2368]
movzx eax, word [ebp + edx*2 - 0x21e]
cmp eax, 0x66
je 0x40595e
mov ecx, dword [ebp - 0x2368]
movzx edx, word [ebp + ecx*2 - 0x21e]
cmp edx, 0x46
jne 0x4059ed
mov eax, dword [ebp - 0x2368]
movzx ecx, word [ebp + eax*2 - 0x220]
cmp ecx, 0x66
je 0x405984
mov edx, dword [ebp - 0x2368]
movzx eax, word [ebp + edx*2 - 0x220]
cmp eax, 0x46
jne 0x4059ed
mov ecx, dword [ebp - 0x2368]
movzx edx, word [ebp + ecx*2 - 0x222]
cmp edx, 0x63
je 0x4059aa
mov eax, dword [ebp - 0x2368]
movzx ecx, word [ebp + eax*2 - 0x222]
cmp ecx, 0x43
jne 0x4059ed
mov edx, dword [ebp - 0x2368]
movzx eax, word [ebp + edx*2 - 0x224]
cmp eax, 0x2e
jne 0x4059ed
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x2134]
push edx
call fcn.00556264
add esp, 0xc
push 1
lea eax, [ebp - 0x2134]
push eax
call fcn.0045cd30
add esp, 8
xor eax, eax
jmp 0x405a4e
push 0
lea ecx, [ebp - 0x1f2c]
call fcn.00405b00
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x237c]
lea edx, [ebp - 0x1f2c]
mov dword [ecx + 0x20], edx
lea eax, [ebp - 0x1f2c]
mov dword [0x606760], eax
lea ecx, [ebp - 0x1f2c]
call fcn.00531e8d
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x2378], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f2c]
call fcn.00405d10
mov eax, dword [ebp - 0x2378]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00555ac5
mov esp, ebp
pop ebp
ret