Function at 0x403550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4336e8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x109c
call fcn.0041ebe0
mov eax, dword [0x449620]
xor eax, ebp
mov dword [ebp - 0x18], 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, edx
mov edi, ecx
cmp byte [ebp + 0x14], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1090], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1088], eax
mov dword [ebp - 0x1070], 0
jne 0x4035b8
push 0x43ff0c
mov ecx, esi
call fcn.00404b10
push 0
push 0
push 0
push 0
push 1
push str.MFC_Sample_App
lea ecx, [ebp - 0x10a4]
mov dword [ebp - 0x1074], 0
call fcn.0040e01a
mov dword [ebp - method.CInternetSession.virtual_0], 0x43ff30
mov dword [ebp - 4], 0
mov dword [ebp - 0x1060], 0
mov dword [ebp - 0x105c], 0
mov byte [ebp - 4], 1
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x403621
push 0x80004005
call fcn.00403170
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1064], eax
mov byte [ebp - 4], 2
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x403651
push 0x80004005
call fcn.00403170
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1068], eax
lea eax, [ebp - 0x107c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1068]
push eax
lea eax, [ebp - 0x1064]
push eax
lea eax, [ebp - 0x1078]
push eax
push edi
call fcn.0040e508
test eax, eax
je 0x403b9a
mov al, byte [ebp + 0x10]
test al, al
jne 0x40369f
cmp dword [ebp - 0x1078], 3
jmp 0x4036ad
cmp al, 1
jne 0x4036b3
cmp dword [ebp - 0x1078], 0x100b
jne 0x403b9a
cmp dword [0x44e724], 0
je 0x4036c9
push 1
lea ecx, [ebp - 0x10a4]
call fcn.0040e692
push 0
push 0
push dword [ebp - 0x107c]
lea ecx, [ebp - 0x10a4]
push dword [ebp - 0x1064]
call fcn.0040e946
cmp byte [ebp + 0x10], 1
mov ebx, eax
mov ecx, 0xa4800000
mov dword [ebp - 0x1060], ebx
mov eax, 0xa0000000
cmove eax, ecx
mov ecx, ebx
push eax
push 0
push 0
push 1
push 0
push dword [ebp - 0x1068]
mov dword [ebp - 0x1084], eax
push 1
call fcn.0040ea83
push 0xffffffffffffffff
mov edi, eax
push 0x10000000
push str.Content_Type:_text_plain
mov ecx, edi
mov dword [ebp - 0x105c], edi
call fcn.0040e49f
push 0
push 0
push 0
push 0
mov ecx, edi
call fcn.0040efa8
lea eax, [ebp - 0x106c]
mov ecx, edi
push eax
call fcn.0040eba2
mov eax, dword [ebp - 0x106c]
cmp eax, 0x191
jne 0x4037bc
push 0
push 6
push 0x2eee
push 0
mov ecx, edi
call fcn.0040e6ee
cmp eax, 0x2f00
je 0x403783
mov ecx, 2
call fcn.004034e0
push 0
push 0
push 0
push 0
mov ecx, edi
call fcn.0040efa8
lea eax, [ebp - 0x106c]
mov ecx, edi
push eax
call fcn.0040eba2
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4037cd
push 0x80004005
call fcn.00403170
cmp eax, 0x194
jne 0x4037a0
mov ecx, 3
call fcn.004034e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1058], eax
push 0
lea eax, [ebp - 0x1058]
mov byte [ebp - 4], 4
push eax
push 0x16
mov ecx, edi
call fcn.0040eb2b
mov eax, dword [ebp - 0x106c]
cmp eax, 0x12d
je 0x403812
cmp eax, 0x12e
je 0x403812
cmp eax, 0x12f
jne 0x403a06
push 0
lea eax, [ebp - 0x1058]
mov ecx, edi
push eax
push 0x16
call fcn.0040eb2b
mov eax, dword [ebp - 0x1058]
cmp dword [eax - 0xc], 0
jl 0x403b90
push str.Location:
push eax
call fcn.0041ba7c
add esp, 8
test eax, eax
je 0x403b90
sub eax, dword [ebp - 0x1058]
sar eax, 1
cmp eax, 0xffffffff
je 0x403b90
add eax, 0xa
lea ecx, [ebp - 0x1058]
push eax
lea eax, [ebp - 0x1080]
push eax
call fcn.00403d40
push eax
lea ecx, [ebp - 0x1058]
mov byte [ebp - 4], 5
call fcn.00404d00
mov byte [ebp - 4], 4
or ecx, 0xffffffff
mov edx, dword [ebp - 0x1080]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4038a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1058]
cmp dword [eax - 0xc], 0
jle 0x4038fe
push 0xa
push eax
call fcn.0041c514
add esp, 8
test eax, eax
je 0x4038fe
sub eax, dword [ebp - 0x1058]
sar eax, 1
test eax, eax
jle 0x4038fe
push eax
lea eax, [ebp - 0x1080]
push eax
lea ecx, [ebp - 0x1058]
call fcn.00403d70
push eax
lea ecx, [ebp - 0x1058]
mov byte [ebp - 4], 6
call fcn.00404d00
lea ecx, [ebp - 0x1080]
mov byte [ebp - 4], 4
call fcn.00402d20
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x50]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0x105c], 0
call dword [eax + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 4]
lea eax, [ebp - 0x107c]
mov dword [ebp - 0x1060], 0
push eax
lea eax, [ebp - 0x1068]
push eax
lea eax, [ebp - 0x1064]
push eax
lea eax, [ebp - 0x1078]
push eax
push dword [ebp - 0x1058]
call fcn.0040e508
test eax, eax
jne 0x403965
lea ecx, [eax + 5]
call fcn.004034e0
cmp dword [ebp - 0x1078], 3
je 0x403978
mov ecx, 6
call fcn.004034e0
push 0
push 0
push dword [ebp - 0x107c]
lea ecx, [ebp - 0x10a4]
push dword [ebp - 0x1064]
call fcn.0040e946
push dword [ebp - 0x1084]
mov ebx, eax
push 0
push 0
push 1
push 0
push dword [ebp - 0x1068]
mov ecx, ebx
mov dword [ebp - 0x1060], ebx
push 1
call fcn.0040ea83
push 0xffffffffffffffff
mov edi, eax
push 0x10000000
push str.Content_Type:_text_plain
mov ecx, edi
mov dword [ebp - 0x105c], edi
call fcn.0040e49f
push 0
push 0
push 0
push 0
mov ecx, edi
call fcn.0040efa8
lea eax, [ebp - 0x106c]
mov ecx, edi
push eax
call fcn.0040eba2
cmp dword [ebp - 0x106c], 0xc8
je 0x403a06
mov ecx, 7
call fcn.004034e0
push 0x1000
mov ecx, edi
call fcn.0040f003
cmp byte [ebp + 0x14], 0
jne 0x403a4b
jmp 0x403a20
mov eax, dword [edi]
lea ecx, [ebp - 0x1024]
push 0x1000
push ecx
mov ecx, edi
call dword [eax + 0x60]
test eax, eax
je 0x403b21
lea eax, [ebp - 0x1024]
mov ecx, esi
push eax
call fcn.00403ca0
jmp 0x403a20
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x403a65
push 0
mov ecx, esi
call fcn.004030c0
push dword [esi]
lea ecx, [ebp - 0x103c]
call fcn.00403de0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x1084]
cmp dword [ebp - 0x1028], 8
lea esi, [ebp - 0x103c]
push eax
cmovae esi, dword [ebp - 0x103c]
lea ecx, [ebp - 0x103c]
call fcn.00403e70
lea ecx, [ebp - 0x1054]
push dword [eax]
push esi
call fcn.00404630
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1054]
cmp dword [ebp - 0x1040], 0x10
mov edx, 0x43fecc
mov eax, 0x43fec8
cmovae ecx, dword [ebp - 0x1054]
cmp byte [ebp - 0x1090], 0
cmovne eax, edx
push eax
push ecx
lea eax, [ebp - 0x1070]
push eax
call fcn.0041be1e
add esp, 0xc
test eax, eax
jne 0x403b80
nop
mov eax, dword [edi]
lea ecx, [ebp - 0x1024]
push 0x1000
push ecx
mov ecx, edi
call dword [eax + 0x38]
test eax, eax
jne 0x403b55
lea ecx, [ebp - 0x1054]
call fcn.00404ae0
lea ecx, [ebp - 0x103c]
mov byte [ebp - 4], 4
call fcn.00403e40
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x50]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
lea ecx, [ebp - 0x1058]
call fcn.00402d20
lea ecx, [ebp - 0x1068]
call fcn.00402d20
lea ecx, [ebp - 0x1064]
call fcn.00402d20
jmp 0x403be6
push dword [ebp - 0x1070]
push 1
push eax
lea eax, [ebp - 0x1024]
push eax
call fcn.0041bfbc
add esp, 0x10
cmp eax, 1
jae 0x403af0
mov ecx, 8
call fcn.004034e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 9
call fcn.004034e0
mov ecx, 4
call fcn.004034e0
mov ecx, 1
call fcn.004034e0
mov ecx, dword [ebp - 0x1088]
mov esi, dword [ebp - 0x108c]
test ecx, ecx
je 0x403bc3
mov eax, dword [esi]
push 0
push 0x400
push ecx
mov ecx, esi
call dword [eax + 0x10]
mov ecx, esi
mov dword [ebp - 0x1074], 0xb
call fcn.0040c8ad
mov eax, 0x403bda
ret
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1070]
test eax, eax
je 0x403c0b
push eax
call fcn.0041c0f1
push dword [ebp - 0x1070]
call fcn.0041c29a
add esp, 8
test edi, edi
je 0x403c18
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
test ebx, ebx
je 0x403c25
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 4]
lea ecx, [ebp - 0x10a4]
call fcn.0040e660
lea ecx, [ebp - 0x10a4]
mov dword [ebp - 4], 0xffffffff
call fcn.0040e326
mov eax, dword [ebp - 0x1074]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0041b617
mov esp, ebp
pop ebp
ret