Function at 0x40c1b0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x11c8]
mov eax, 0x11c8
call fcn.0043c050
push 0xffffffffffffffff
push 0x4531ad
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x46f7c0]
xor eax, ebp
mov dword [ebp + 0x11c4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x11d0]
mov eax, dword [ebp + 0x11d4]
mov ecx, dword [ebp + 0x11dc]
mov edx, dword [ebp + 0x11e0]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ebx, ebx
push esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x48], ebx
mov byte [ebp + 0x10c0], bl
call edi
test eax, eax
je 0x40c8d1
push esi
call fcn.00415430
add esp, 4
test eax, eax
je 0x40c8d1
cmp dword [ebp + 0x11d8], ebx
je 0x40c25c
lea eax, [ebp + 0x10c0]
push eax
push esi
call fcn.0040e5b0
add esp, 8
lea ecx, [ebp + 0x10c0]
push ecx
call edi
test eax, eax
je 0x40c367
push 1
push 0x40
push 1
lea edx, [ebp + 0x10c0]
push edx
lea ecx, [ebp - 0x11c]
call fcn.0040bec0
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0xe4]
xor edi, edi
cmp eax, ebx
mov byte [ebp - 0x40], 1
mov ecx, dword [ebp - 0x40]
push ecx
sete dl
mov byte [ebp - 0x30], dl
mov edx, dword [ebp - 0x30]
push edi
push edx
push eax
lea ecx, [ebp + 0xa4]
mov dword [ebp - 4], 2
call fcn.0040b710
mov byte [ebp - 4], 3
cmp dword [ebp + 0xb4], ebx
jbe 0x40c331
lea eax, [ebp + 0xa4]
push eax
lea ecx, [ebp + 0x88]
push ecx
call fcn.0041b6e0
add esp, 8
mov ecx, dword [ebp - 0x2c]
push eax
mov byte [ebp - 4], 4
call fcn.00406af0
lea ecx, [ebp + 0x88]
call fcn.00404480
lea ecx, [ebp + 0xa4]
call fcn.00404480
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c030
lea edx, [ebp - 0xb4]
push edx
mov dword [ebp - 0xb4], vtable.std::ios_base.0
call fcn.00429137
jmp 0x40c98e
lea ecx, [ebp + 0xa4]
call fcn.00404480
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c030
lea eax, [ebp - 0xb4]
push eax
mov dword [ebp - 0xb4], vtable.std::ios_base.0
call fcn.00429137
add esp, 4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], 0x3c
mov dword [ebp - 0x1c], 0x80004005
jmp 0x40c383
push 7
mov edi, 0xf
push 0x459d7c
lea ecx, [ebp + 0x88]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], 5
mov dword [ebp + 0x9c], edi
mov dword [ebp + 0x98], ebx
mov byte [ebp + 0x88], bl
call fcn.00405990
mov eax, esi
mov byte [ebp - 4], 6
mov dword [ebp + 0x80], edi
mov dword [ebp + 0x7c], ebx
mov byte [ebp + 0x6c], bl
lea edx, [eax + 1]
jmp 0x40c3d0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c3d0
sub eax, edx
push eax
push esi
lea ecx, [ebp + 0x6c]
call fcn.00405990
lea ecx, [ebp + 0x6c]
push ecx
lea ecx, [ebp]
mov byte [ebp - 4], 7
call fcn.0041f200
lea edx, [ebp + 0x88]
push edx
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0041f2c0
cmp dword [ebp - 0x14], ebx
setne cl
movzx edx, cl
push edx
mov ecx, eax
call fcn.0041e7c0
push 1
lea ecx, [ebp - 0x60]
push ecx
mov ecx, eax
call fcn.004203b0
lea edx, [ebp + 0xa4]
push edx
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00421500
mov ecx, dword [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xa
call fcn.00406af0
mov esi, 0x10
cmp dword [ebp + 0xb8], esi
jb 0x40c45e
mov eax, dword [ebp + 0xa4]
push eax
call fcn.0043a71e
add esp, 4
mov dword [ebp + 0xb8], edi
mov dword [ebp + 0xb4], ebx
mov byte [ebp + 0xa4], bl
mov byte [ebp - 4], 0xc
cmp byte [ebp - 0x4c], bl
je 0x40c488
mov ecx, dword [ebp - 0x50]
push ecx
mov byte [ebp - 0x4c], bl
call fcn.0041e760
add esp, 4
mov byte [ebp - 4], 0xb
cmp byte [ebp - 0x54], bl
je 0x40c4a0
mov edx, dword [ebp - 0x58]
push edx
mov byte [ebp - 0x54], bl
call fcn.0041e760
add esp, 4
mov byte [ebp - 4], 8
cmp byte [ebp - 0x5c], bl
je 0x40c4b8
mov eax, dword [ebp - 0x60]
push eax
mov byte [ebp - 0x5c], bl
call fcn.0041e760
add esp, 4
lea ecx, [ebp]
mov byte [ebp - 4], 7
call fcn.0041f030
cmp dword [ebp + 0x80], esi
jb 0x40c4d8
mov ecx, dword [ebp + 0x6c]
push ecx
call fcn.0043a71e
add esp, 4
mov dword [ebp + 0x80], edi
mov dword [ebp + 0x7c], ebx
mov byte [ebp + 0x6c], bl
cmp dword [ebp + 0x9c], esi
jb 0x40c4fb
mov edx, dword [ebp + 0x88]
push edx
call fcn.0043a71e
add esp, 4
xor edi, edi
mov dword [ebp - 4], 0xffffffff
jmp 0x40c822
lea edx, [ebp + 0x10c0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40c8ca
push ebx
push 0x20
push 4
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x10c0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c8ca
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp + 0x50]
push edx
call fcn.0041b6e0
add esp, 8
cmp dword [ebp + 0x64], 0x10
mov eax, dword [ebp + 0x50]
mov dword [ebp - 4], 0xe
jae 0x40c87a
lea eax, [ebp + 0x50]
mov edx, dword [ebp + 0x60]
push ebx
lea ecx, [ebp - 0x48]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], ebx
je 0x40c8b8
mov eax, dword [ebp + 0x11e4]
mov ecx, dword [ebp - 0x38]
push 0x20
push 0x800c
push eax
push ecx
lea edx, [ebp + 0x10c0]
push edx
call fcn.00411f40
add esp, 0x14
cmp dword [ebp + 0x64], 0x10
jb 0x40c8ca
mov eax, dword [ebp + 0x50]
push eax
call fcn.0043a71e
add esp, 4
mov eax, edi
jmp 0x40c993
push 3
call fcn.00417630
mov ecx, eax
call fcn.00417640
test al, al
je 0x40c991
push 0x11
mov edi, 0xf
push str.not_allowed_URL:
lea ecx, [ebp + 0x88]
mov dword [ebp + 0x9c], edi
mov dword [ebp + 0x98], ebx
mov byte [ebp + 0x88], bl
call fcn.00405990
push esi
lea ecx, [ebp + 0x88]
push ecx
lea edx, [ebp + 0xa4]
push edx
mov dword [ebp - 4], ebx
call fcn.00406c80
add esp, 0xc
push eax
push 0x459d70
push 0x90
push 0x459d90
push 3
mov byte [ebp - 4], 1
call fcn.00417630
mov ecx, eax
call fcn.00419b70
mov esi, 0x10
cmp dword [ebp + 0xb8], esi
jb 0x40c968
mov eax, dword [ebp + 0xa4]
push eax
call fcn.0043a71e
add esp, 4
mov dword [ebp + 0xb8], edi
mov dword [ebp + 0xb4], ebx
mov byte [ebp + 0xa4], bl
cmp dword [ebp + 0x9c], esi
jb 0x40c991
mov ecx, dword [ebp + 0x88]
push ecx
call fcn.0043a71e
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c4]
xor ecx, ebp
call fcn.0043b8c7
lea esp, [ebp + 0x11c8]
pop ebp
ret