Function at 0x40cd09
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cd1d
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x47c1b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x5c], 0
jle 0x40ccbf
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0x58], 0
je 0x40ccbf
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x5c]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.0044b5fa
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x5c]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x58]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x5c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0040b9f0
add esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
add ecx, dword [eax + 0x5c]
push ecx
call fcn.0040b9f0
add esp, 0x10
jmp 0x40ccec
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0044b5fa
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0040b9f0
add esp, 0x10
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 4
ja case.default.0x40cd02
mov ecx, dword [ebp - 0x60]
jmp dword [ecx*4 + 0x40d47c]
push 0
push 0
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x28]
add eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x28], eax
jmp case.default.0x40cd02
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x168]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x3c
call fcn.00408280
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 0x150]
push edx
mov ecx, dword [ebp - 0x34]
add ecx, 0x30
call fcn.00408280
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x14], 0x10
jb 0x40cdca
mov dword [ebp - 0x64], 1
jmp 0x40cdd1
mov dword [ebp - 0x64], 0
mov cl, byte [ebp - 0x64]
mov byte [ebp - 0x46], cl
movzx edx, byte [ebp - 0x46]
test edx, edx
je 0x40cdf3
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x54]
cmp dword [ecx + 0x14], 0x10
jb 0x40ce29
mov dword [ebp - 0x6c], 1
jmp 0x40ce30
mov dword [ebp - 0x6c], 0
mov dl, byte [ebp - 0x6c]
mov byte [ebp - 0x41], dl
movzx eax, byte [ebp - 0x41]
test eax, eax
je 0x40ce52
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0x34]
movzx ecx, byte [eax + 0x54]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
mov eax, dword [ebp - 0xac]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.00411920
add esp, 0x14
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00401770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.00401770
jmp case.default.0x40cd02
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x198]
push ecx
mov ecx, dword [ebp - 0x34]
add ecx, 0x3c
call fcn.00408280
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0xb8], edx
mov dword [ebp - 4], 2
lea eax, [ebp - 0x180]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x30
call fcn.00408280
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xc4], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 0x14], 0x10
jb 0x40cf30
mov dword [ebp - 0x74], 1
jmp 0x40cf37
mov dword [ebp - 0x74], 0
mov dl, byte [ebp - 0x74]
mov byte [ebp - 0x42], dl
movzx eax, byte [ebp - 0x42]
test eax, eax
je 0x40cf59
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0xd0], edx
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x14], 0x10
jb 0x40cf8f
mov dword [ebp - 0x7c], 1
jmp 0x40cf96
mov dword [ebp - 0x7c], 0
mov al, byte [ebp - 0x7c]
mov byte [ebp - 0x43], al
movzx ecx, byte [ebp - 0x43]
test ecx, ecx
je 0x40cfb8
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0x34]
movzx edx, byte [ecx + 0x54]
push edx
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0xd4]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.00411b50
add esp, 0x14
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x180]
call fcn.00401770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x198]
call fcn.00401770
jmp case.default.0x40cd02
push 0x470ce1
lea ecx, [ebp - 0x104]
call fcn.00401510
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x104]
push ecx
mov ecx, dword [ebp - 0x34]
add ecx, 0x48
call fcn.00404990
test eax, eax
je 0x40d055
mov dword [ebp - 0x84], 1
jmp 0x40d05f
mov dword [ebp - 0x84], 0
mov dl, byte [ebp - 0x84]
mov byte [ebp - 0x44], dl
mov dword [ebp - 4], 5
mov dword [ebp - method.CefStringBase_struct_CefStringTraitsUTF16_.virtual_0], vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
lea ecx, [ebp - 0x104]
call fcn.00402110
mov dword [ebp - 4], 0xffffffff
movzx eax, byte [ebp - 0x44]
test eax, eax
je 0x40d189
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x134], esp
push 0x4710e8
call fcn.00401fa0
mov dword [ebp - 0x138], eax
mov dword [ebp - 4], 6
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x114], esp
mov dword [ebp - 0xd8], edx
mov eax, dword [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x48
call fcn.00408280
mov ecx, dword [ebp - 0x4c]
or ecx, 0x10
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.00411780
add esp, 0x34
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], 7
lea eax, [ebp - 0x20]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x88]
mov eax, dword [ecx + 4]
sub eax, dword [edx]
cdq
mov ecx, 0x18
idiv ecx
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jbe 0x40d17a
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x14], edx
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x11c], esp
lea eax, [ebp - 0x20]
push eax
call fcn.0040d490
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004109b0
add esp, 0x14
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040abe0
jmp case.default.0x40cd02
push 0x470ce2
lea ecx, [ebp - 0x110]
call fcn.00401510
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x34]
add ecx, 0x48
call fcn.00404990
test eax, eax
je 0x40d1c7
mov dword [ebp - 0x8c], 1
jmp 0x40d1d1
mov dword [ebp - 0x8c], 0
mov dl, byte [ebp - 0x8c]
mov byte [ebp - 0x45], dl
mov dword [ebp - 4], 9
mov dword [ebp - method.CefStringBase_struct_CefStringTraitsUTF16_.virtual_0], vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
lea ecx, [ebp - 0x110]
call fcn.00402110
mov dword [ebp - 4], 0xffffffff
movzx eax, byte [ebp - 0x45]
test eax, eax
je case.default.0x40cd02
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x120], esp
push 0x4710ec
call fcn.00401fa0
mov dword [ebp - 0x124], eax
mov dword [ebp - 4], 0xa
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x128], esp
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xe4]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x48
call fcn.00408280
mov ecx, dword [ebp - 0x4c]
or ecx, 0x40
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.00411780
add esp, 0x34
mov dword [ebp - 0x12c], eax
mov dword [ebp - 4], 0xb
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x90]
mov eax, dword [ecx + 4]
sub eax, dword [edx]
cdq
mov ecx, 0x18
idiv ecx
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
jbe 0x40d2ec
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x14], edx
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x130], esp
lea eax, [ebp - 0x2c]
push eax
call fcn.0040d490
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.00411090
add esp, 0x14
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040abe0
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0044b546
add esp, 4
cmp dword [ebp - 0x3c], 0
je 0x40d3fd
cmp dword [ebp - 0x14], 0
jle 0x40d3fd
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0x18]
jbe 0x40d3a9
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov dword [eax], ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov dword [edx], eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0040b9f0
add esp, 0x10
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x5c], edx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x5c]
push edx
call fcn.0044b5fa
add esp, 4
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x58], eax
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x5c]
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x5c]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x58]
push edx
call fcn.0040b9f0
add esp, 0x10
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0044b546
add esp, 4
xor eax, eax
jmp 0x40d460
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ecx], edx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.0040b9f0
add esp, 0x10
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x5c], 0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x58]
push edx
call fcn.0044b546
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0044b546
add esp, 4
mov eax, 1
jmp 0x40d460
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x18]
jbe 0x40d433
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov dword [edx], eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov dword [ecx], edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.0040b9f0
add esp, 0x10
xor eax, eax
jmp 0x40d460
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ecx], edx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.0040b9f0
add esp, 0x10
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044691d
mov esp, ebp
pop ebp
ret 0x18