Function at 0x45cb80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov ebx, dword [esi*4 + 0x628180]
test ebx, ebx
jne 0x45cba2
or eax, 0xffffffff
jmp 0x45cdf6
mov edx, dword [ebx + 8]
cmp edx, 4
ja case.default.0x45cbae
jmp dword [edx*4 + 0x45cbb5]
mov ecx, dword [ebx + 0x23c]
lea eax, [ebx + 0xb0]
push ecx
push eax
lea edx, [ebx + 0x130]
lea ecx, [ebp - 0x208]
push edx
push str.GET__s_HTTP_1.0_r_nHost:__s:_d_r_nConnection:_close_r_n_r_n
push ecx
call fcn.00457a9c
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
call sub.KERNEL32.DLL_lstrlenA
push eax
lea edx, [ebp - 0x208]
push edx
mov ecx, dword [ebx + 0x18]
push ecx
call fcn.0046137c
add esp, 0xc
inc dword [ebx + 8]
lea eax, [ebp - 0x208]
push eax
mov edx, dword [ebx + 0x18]
push edx
call fcn.0046152c
add esp, 8
inc eax
je case.default.0x45cbae
lea ecx, [ebp - 0x208]
push ecx
call fcn.0045c708
pop ecx
mov edi, eax
cmp edi, 0xc8
je 0x45cc82
mov eax, edi
sub eax, 0x194
je 0x45cc56
sub eax, 0x60
je 0x45cc5d
jmp 0x45cc61
mov ebx, 1
jmp 0x45cc63
xor ebx, ebx
jmp 0x45cc63
xor ebx, ebx
push edi
push 0x5f1d02
call fcn.0045e1bc
add esp, 8
push ebx
push 2
push esi
call fcn.0045ca28
add esp, 0xc
jmp case.default.0x45cbae
inc dword [ebx + 8]
lea eax, [ebp - 0x208]
push eax
mov edx, dword [ebx + 0x18]
push edx
call fcn.0046152c
add esp, 8
inc eax
je case.default.0x45cbae
push 0x3a
lea ecx, [ebp - 0x208]
push ecx
call fcn.0045e954
add esp, 8
test eax, eax
jne 0x45ccb9
inc dword [ebx + 8]
jmp case.0x45cbae.3
lea eax, [ebp - 0x208]
push eax
call fcn.0045c708
pop ecx
mov edi, eax
push 0x5f1d31
call sub.KERNEL32.DLL_lstrlenA
push eax
push 0x5f1d21
lea eax, [ebp - 0x208]
push eax
call fcn.0045ea34
add esp, 0xc
test eax, eax
jne case.default.0x45cbae
mov dword [ebx + 0x28], edi
cmp dword [ebx + 0x1c], 1
jne case.default.0x45cbae
push 0
push 0x5f1d41
mov edx, dword [ebx + 0x28]
push edx
call fcn.0045e2c4
mov edi, eax
mov eax, dword [ebx + 0x24]
add esp, 0xc
test edi, edi
mov dword [eax], edi
jne case.default.0x45cbae
push 2
push 2
push esi
call fcn.0045ca28
add esp, 0xc
jmp case.default.0x45cbae
mov edx, dword [ebx + 0x1c]
sub edx, 1
jb 0x45cd3c
je 0x45cd75
jmp 0x45cd9b
push 0x1000
push 0x629c88
mov ecx, dword [ebx + 0x18]
push ecx
call fcn.00461158
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x45cd9b
push 0
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
push 0x629c88
mov ecx, dword [ebx + 0x20]
push ecx
call sub.KERNEL32.DLL_WriteFile
jmp 0x45cd9b
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x2c]
sub edx, eax
push edx
mov ecx, dword [ebx + 0x24]
mov edx, dword [ecx]
add edx, eax
push edx
mov eax, dword [ebx + 0x18]
push eax
call fcn.00461158
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x45cd9b
cmp dword [ebp - 4], 0
jl case.default.0x45cbae
mov ecx, dword [ebp - 4]
add dword [ebx + 0x2c], ecx
mov eax, dword [ebx + 0x18]
push eax
call fcn.00460f6c
pop ecx
mov edi, eax
mov eax, dword [ebx + 0x18]
push eax
call fcn.00461030
cmp dword [ebx + 0x28], 0xffffffff
pop ecx
jne 0x45cdcb
test edi, edi
jne 0x45cdd8
test eax, eax
jne 0x45cdd8
mov eax, dword [ebx + 0x28]
cmp eax, 0xffffffff
je 0x45cde4
cmp eax, dword [ebx + 0x2c]
jle 0x45cde4
cmp dword [ebp - 4], 0
jne case.0x45cbae.3
jmp case.default.0x45cbae
inc dword [ebx + 8]
push 0xffffffffffffffff
push 0
push esi
call fcn.0045ca28
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret