Function at 0x412740
Capabilities:
Get hostname
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x46974a
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x304], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x31c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x32c]
mov eax, dword [esp + 0x334]
mov ebp, dword [esp + 0x330]
mov esi, dword [esp + 0x338]
mov dword [esp + 0x18], eax
test edi, edi
jne 0x4127ae
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4139dc
mov ecx, dword [edi + 0x34]
mov ebx, dword [ecx + 0x44]
push str.SERVER_PORT
push ebp
mov dword [esp + 0x1c], 1
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x412825
movzx edx, word [ebx + 4]
push edx
push 0x46eef0
lea eax, [esp + 0xec]
push 0xa
push eax
call fcn.00454308
lea eax, [esp + 0xf4]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4127f4
sub eax, edx
lea edi, [eax + 1]
cmp dword [esi], edi
jb 0x413580
lea ecx, [esp + 0xe4]
mov edx, dword [esp + 0x18]
push ecx
push edi
push edx
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
jmp 0x4139d8
push str.SERVER_PORT_SECURE
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
je 0x41302e
push str.SERVER_PROTOCOL
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x41288d
push str.HTTP_1.0
lea eax, [esp + 0xd0]
push 0xa
push eax
call fcn.00453ad5
lea eax, [esp + 0xd8]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412870
sub eax, edx
lea edi, [eax + 1]
cmp dword [esi], edi
jb 0x413580
lea ecx, [esp + 0xcc]
jmp 0x41280f
push str.SERVER_SOFTWARE
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x4128eb
add ebx, 0x2c
push ebx
lea ecx, [esp + 0x78]
call fcn.00401880
mov eax, dword [esp + 0x74]
mov edi, dword [eax - 0xc]
inc edi
cmp dword [esi], edi
jb 0x4128d2
push eax
mov eax, dword [esp + 0x1c]
push edi
push eax
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
lea ecx, [esp + 0x74]
jmp 0x4139d3
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x74]
jmp 0x4139d3
push 0x470b24
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x412955
add edi, 0x78
push edi
lea ecx, [esp + 0x8c]
call fcn.00401880
mov eax, dword [esp + 0x88]
mov edi, dword [eax - 0xc]
inc edi
cmp dword [esi], edi
jb 0x412939
mov ecx, dword [esp + 0x18]
push eax
push edi
push ecx
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
lea ecx, [esp + 0x88]
jmp 0x4139d3
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x88]
jmp 0x4139d3
push str.QUERY_STRING
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x4129b6
add edi, 0x88
push edi
lea ecx, [esp + 0x60]
call fcn.00401880
mov eax, dword [esp + 0x5c]
mov edi, dword [eax - 0xc]
inc edi
cmp dword [esi], edi
jb 0x41299d
mov edx, dword [esp + 0x18]
push eax
push edi
push edx
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
lea ecx, [esp + 0x5c]
jmp 0x4139d3
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x5c]
jmp 0x4139d3
push str.PATH_INFO
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x412a20
sub edi, 0xffffff80
push edi
lea ecx, [esp + 0x94]
call fcn.00401880
mov eax, dword [esp + 0x90]
mov edi, dword [eax - 0xc]
inc edi
cmp dword [esi], edi
jb 0x412a04
push eax
mov eax, dword [esp + 0x1c]
push edi
push eax
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
lea ecx, [esp + 0x90]
jmp 0x4139d3
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x90]
jmp 0x4139d3
push str.REMOTE_ADDR
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x412a82
add edi, 0x54
lea ecx, [esp + 0x64]
push edi
push ecx
call fcn.00406770
mov eax, dword [esp + 0x6c]
mov edi, dword [eax - 0xc]
inc edi
add esp, 8
cmp dword [esi], edi
jb 0x412a69
mov edx, dword [esp + 0x18]
push eax
push edi
push edx
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
lea ecx, [esp + 0x64]
jmp 0x4139d3
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x64]
jmp 0x4139d3
push str.REMOTE_HOST
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x412b11
mov ecx, dword [edi + 0xb0]
cmp dword [ecx - 0xc], 0
lea eax, [edi + 0xb0]
je 0x412afb
push eax
lea ecx, [esp + 0x9c]
call fcn.00401880
mov eax, dword [esp + 0x98]
mov edi, dword [eax - 0xc]
inc edi
cmp dword [esi], edi
jb 0x412adf
mov edx, dword [esp + 0x18]
push eax
push edi
push edx
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
lea ecx, [esp + 0x98]
jmp 0x4139d3
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x98]
jmp 0x4139d3
mov eax, dword [esp + 0x18]
push esi
push eax
push str.REMOTE_ADDR
push edi
call fcn.00412740
jmp 0x4139dc
push str.REMOTE_USER
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
je 0x413937
push str.AUTH_USER
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
je 0x413937
push str.REQUEST_METHOD
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x412b9b
add edi, 0x74
push edi
lea ecx, [esp + 0x70]
call fcn.00401880
mov eax, dword [esp + 0x6c]
mov edi, dword [eax - 0xc]
inc edi
cmp dword [esi], edi
jb 0x412b82
mov ecx, dword [esp + 0x18]
push eax
push edi
push ecx
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
lea ecx, [esp + 0x6c]
jmp 0x4139d3
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x6c]
jmp 0x4139d3
push str.SERVER_NAME
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x412c44
lea ecx, [esp + 0x3c]
call fcn.00401850
mov edx, dword [ebx + 0x24]
add ebx, 0x24
cmp dword [edx - 0xc], 0
mov dword [esp + 0x324], 1
je 0x412bdd
push ebx
lea ecx, [esp + 0x40]
call fcn.004042c0
jmp 0x412c05
push pe_nt_image_headers32
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x412c05
lea ecx, [esp + 0x218]
push ecx
lea ecx, [esp + 0x40]
call fcn.00402160
mov eax, dword [esp + 0x3c]
mov edi, dword [eax - 0xc]
inc edi
cmp dword [esi], edi
jb 0x412c2b
mov edx, dword [esp + 0x18]
push eax
push edi
push edx
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
lea ecx, [esp + 0x3c]
jmp 0x4139d3
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x3c]
jmp 0x4139d3
push str.HTTPS
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x412c97
push 0x470ab0
lea eax, [esp + 0x100]
push 0xa
push eax
call fcn.00453ad5
lea eax, [esp + 0x108]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412c77
sub eax, edx
lea edi, [eax + 1]
cmp dword [esi], edi
jb 0x413580
lea ecx, [esp + 0xfc]
jmp 0x41280f
push str.AUTH_TYPE
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x412d31
mov edi, dword [edi + 0xa4]
cmp edi, 1
jne 0x412cc9
push str.Basic
push 0xa
lea eax, [esp + 0xb0]
push eax
jmp 0x412cee
cmp edi, 2
jne 0x412cdf
push str.NTLM
push 0xa
lea ecx, [esp + 0xb0]
push ecx
jmp 0x412cee
push 0x46eb20
push 0xa
lea edx, [esp + 0xb0]
push edx
call fcn.00453ad5
lea eax, [esp + 0xb4]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412d00
sub eax, edx
lea edi, [eax + 1]
cmp dword [esi], edi
jb 0x413580
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xa8]
push eax
push edi
push ecx
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
jmp 0x4139d8
push str.AUTH_PASSWORD
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
je 0x41387a
push str.REMOTE_PASSWORD
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
je 0x41387a
push str.AUTH_REALM
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x412dd4
cmp dword [edi + 0xa4], 1
jne 0x41302e
add edi, 0x78
push edi
lea ecx, [esp + 0x88]
call fcn.00401880
mov eax, dword [esp + 0x84]
mov edi, dword [eax - 0xc]
inc edi
cmp dword [esi], edi
jb 0x412db8
mov edx, dword [esp + 0x18]
push eax
push edi
push edx
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
lea ecx, [esp + 0x84]
jmp 0x4139d3
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x84]
jmp 0x4139d3
push str.CONTENT_LENGTH
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x412e42
mov edi, dword [edi + 0x4c]
xor ebx, ebx
cmp edi, ebx
je 0x413761
push edi
push 0x46eef0
lea eax, [esp + 0xbc]
push 0xa
push eax
call fcn.00454308
lea eax, [esp + 0xc4]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412e15
sub eax, edx
lea edi, [eax + 1]
cmp dword [esi], edi
jb 0x412e31
lea ecx, [esp + 0xb4]
jmp 0x41280f
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], ebx
jmp 0x4139d8
push str.CONTENT_TYPE
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x412eb0
mov ecx, dword [edi + 0xb4]
lea eax, [edi + 0xb4]
xor ebx, ebx
cmp dword [ecx - 0xc], ebx
je 0x413761
push eax
lea ecx, [esp + 0x54]
call fcn.00401880
mov eax, dword [esp + 0x50]
mov edi, dword [eax - 0xc]
inc edi
cmp dword [esi], edi
jb 0x412e9b
mov edx, dword [esp + 0x18]
push eax
push edi
push edx
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
lea ecx, [esp + 0x50]
jmp 0x4139d3
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x50]
jmp 0x4139d3
push str.LOGON_USER
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x413046
cmp dword [edi + 0xc4], eax
je 0x412f7b
add edi, 0xa8
push edi
lea ecx, [esp + 0x44]
call fcn.00401880
mov edi, dword [esp + 0x40]
mov ebp, dword [edi - 0xc]
inc ebp
mov dword [esp + 0x324], 3
cmp dword [esi], ebp
jb 0x412f0c
mov eax, dword [esp + 0x18]
push edi
push ebp
push eax
call fcn.00453ad5
add esp, 0xc
mov dword [esi], ebp
jmp 0x412f1c
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], 0
mov esi, dword [edi - 0xc]
test esi, esi
je 0x412f72
mov edx, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub edx, esi
or ecx, edx
jge 0x412f42
push esi
lea ecx, [esp + 0x44]
call fcn.004017a0
mov edi, dword [esp + 0x40]
mov eax, edi
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x412f44
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00450e3f
add esp, 8
test eax, eax
jl 0x413267
cmp eax, dword [edi - 8]
jg 0x413267
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
lea ecx, [esp + 0x40]
jmp 0x4139d3
mov ecx, dword [ebx + 0x34]
cmp dword [ecx - 0xc], 0
lea eax, [ebx + 0x34]
je 0x41302e
push eax
lea ecx, [esp + 0x34]
call fcn.00401880
mov edi, dword [esp + 0x30]
mov ebp, dword [edi - 0xc]
inc ebp
mov dword [esp + 0x324], 4
cmp dword [esi], ebp
jb 0x412fbf
mov edx, dword [esp + 0x18]
push edi
push ebp
push edx
call fcn.00453ad5
add esp, 0xc
mov dword [esi], ebp
jmp 0x412fcf
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], 0
mov esi, dword [edi - 0xc]
test esi, esi
je 0x413025
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
sub ecx, esi
or eax, ecx
jge 0x412ff5
push esi
lea ecx, [esp + 0x34]
call fcn.004017a0
mov edi, dword [esp + 0x30]
mov eax, edi
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x412ff7
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00450e3f
add esp, 8
test eax, eax
jl 0x413267
cmp eax, dword [edi - 8]
jg 0x413267
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
lea ecx, [esp + 0x30]
jmp 0x4139d3
push 0xe8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], 0
jmp 0x4139d8
push str.HTTPS_SERVER_SUBJECT
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
je 0x413850
push str.CERT_SERVER_SUBJECT
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
je 0x413850
push str.HTTPS_SERVER_ISSUER
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
je 0x4137e4
push str.CERT_SERVER_ISSUER
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
je 0x4137e4
push str.CERT_SERIALNUMBER
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x413131
mov edx, dword [edi]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0x94]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [esp + 0x98], ebx
call edx
test eax, eax
je 0x413761
mov eax, dword [esp + 0x94]
push eax
push 0x46eef0
lea ecx, [esp + 0x110]
push 0xa
push ecx
call fcn.00454308
lea eax, [esp + 0x118]
add esp, 0x10
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413100
sub eax, edx
lea edi, [eax + 1]
cmp dword [esi], edi
jb 0x412e31
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x108]
push edx
push edi
push eax
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
jmp 0x4139d8
push str.HTTPS_SECRETKEYSIZE
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
je 0x413775
push str.CERT_SECRETKEYSIZE
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
je 0x413775
push str.HTTPS_KEYSIZE
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
je 0x4136e5
push str.CERT_KEYSIZE
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
je 0x4136e5
push str.PATH_TRANSLATED
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x41321b
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x118]
push edx
mov byte [esp + 0x11c], al
mov eax, dword [edi + 0xd0]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x114]
push ecx
lea ecx, [esp + 0x80]
call fcn.00402600
mov eax, dword [esp + 0x7c]
mov edi, dword [eax - 0xc]
inc edi
cmp dword [esi], edi
jb 0x413202
mov edx, dword [esp + 0x18]
push eax
push edi
push edx
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
lea ecx, [esp + 0x7c]
jmp 0x4139d3
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x7c]
jmp 0x4139d3
push str.SCRIPT_NAME
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x413320
add edi, 0xd0
push edi
lea ecx, [esp + 0x20]
call fcn.00401880
push 0x2f
mov ebx, 5
push 0x5c
lea ecx, [esp + 0x24]
mov dword [esp + 0x32c], ebx
call fcn.004092d0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4132b5
jge 0x413271
push 0x80070057
call fcn.00401090
cmp byte [ecx], 0x2f
je 0x4132b5
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xa0]
push 0x46f790
push ecx
call fcn.004095f0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x328], 6
call fcn.004042c0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x324], bl
call fcn.004018a0
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x90]
call fcn.00401880
mov eax, dword [esp + 0x8c]
mov edi, dword [eax - 0xc]
inc edi
cmp dword [esi], edi
jb 0x4132fb
push eax
mov eax, dword [esp + 0x1c]
push edi
push eax
call fcn.00453ad5
add esp, 0xc
lea ecx, [esp + 0x8c]
mov dword [esi], edi
call fcn.004018a0
lea ecx, [esp + 0x1c]
jmp 0x4139d3
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x14], 0
call fcn.004018a0
lea ecx, [esp + 0x1c]
jmp 0x4139d3
push str.REQUEST_LINE
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x41337e
add edi, 0x50
push edi
lea ecx, [esp + 0x6c]
call fcn.00401880
mov eax, dword [esp + 0x68]
mov edi, dword [eax - 0xc]
inc edi
cmp dword [esi], edi
jb 0x413365
mov ecx, dword [esp + 0x18]
push eax
push edi
push ecx
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
lea ecx, [esp + 0x68]
jmp 0x4139d3
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x68]
jmp 0x4139d3
push str.ALL_HTTP
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x4134c9
lea ecx, [esp + 0x48]
call fcn.00401850
mov eax, dword [edi + 0xe0]
neg eax
sbb eax, eax
mov dword [esp + 0x324], 7
mov dword [esp + 0x44], eax
je 0x41346a
add edi, 0xd4
mov bl, 9
lea ecx, [esp + 0x28]
call fcn.00401850
lea ecx, [esp + 0x38]
call fcn.00401850
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, edi
mov byte [esp + 0x330], bl
call fcn.00438129
lea ecx, [esp + 0x24]
call fcn.00401850
cmp dword [esp + 0x44], 0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
push edx
mov byte [esp + 0x328], 0xa
lea ecx, [esp + 0x28]
push eax
je 0x413420
push str.HTTP__s_s_n
jmp 0x413425
push str.HTTP__s_s
push ecx
call fcn.00401f50
add esp, 0x10
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x4c]
call fcn.004021a0
lea ecx, [esp + 0x24]
call fcn.004018a0
lea ecx, [esp + 0x38]
call fcn.004018a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x324], 7
call fcn.004018a0
cmp dword [esp + 0x44], 0
jne 0x4133c4
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x74]
call fcn.00401880
mov eax, dword [esp + 0x70]
mov edi, dword [eax - 0xc]
inc edi
cmp dword [esi], edi
jb 0x4134a7
mov ecx, dword [esp + 0x18]
push eax
push edi
push ecx
call fcn.00453ad5
add esp, 0xc
lea ecx, [esp + 0x70]
mov dword [esi], edi
call fcn.004018a0
lea ecx, [esp + 0x48]
jmp 0x4139d3
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x70]
mov dword [esp + 0x14], 0
call fcn.004018a0
lea ecx, [esp + 0x48]
jmp 0x4139d3
push str.ALL_RAW
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x413510
mov ebp, dword [edi + 0x44]
test ebp, ebp
je 0x4134e8
sub ebp, dword [edi + 0x3c]
inc ebp
jmp 0x4134eb
mov ebp, dword [edi + 0x40]
cmp dword [esi], ebp
jb 0x413580
mov edx, dword [edi + 0x3c]
mov edi, dword [esp + 0x18]
push ebp
push edx
push edi
call fcn.00453270
mov byte [edi + ebp], 0
add esp, 0xc
mov dword [esi], ebp
jmp 0x4139d8
push str.HTTP_VERSION
push ebp
call fcn.0045d756
add esp, 8
test eax, eax
jne 0x413595
movzx eax, word [edi + 0x8c]
movzx ecx, word [edi + 0x8e]
push eax
push ecx
push str._d._d
lea edx, [esp + 0xcc]
push 0xa
push edx
call fcn.00454308
lea eax, [esp + 0xd4]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413553
sub eax, edx
lea edi, [eax + 1]
cmp dword [esi], edi
jb 0x413580
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc0]
push eax
push edi
push ecx
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
jmp 0x4139d8
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], 0
jmp 0x4139d8
push 5
push str.HTTP_
push ebp
call fcn.0045422d
add esp, 0xc
test eax, eax
jne 0x4136cd
push ebp
lea ecx, [esp + 0x24]
call fcn.00402600
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
add eax, 0xfffffffb
push eax
lea eax, [esp + 0xa4]
mov ebx, 0xb
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x32c], ebx
call fcn.00406640
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x328], 0xc
call fcn.004042c0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x324], bl
call fcn.004018a0
lea ecx, [esp + 0x20]
call fcn.00409590
lea ecx, [esp + 0x4c]
call fcn.00401850
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
push ecx
push edx
lea ecx, [edi + 0xd4]
mov byte [esp + 0x32c], 0xd
call fcn.004380fc
test eax, eax
je 0x4136a8
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x7c]
call fcn.00401880
mov eax, dword [esp + 0x78]
mov edi, dword [eax - 0xc]
inc edi
cmp dword [esi], edi
jb 0x41367d
mov ecx, dword [esp + 0x18]
push eax
push edi
push ecx
call fcn.00453ad5
add esp, 0xc
lea ecx, [esp + 0x78]
mov dword [esi], edi
call fcn.004018a0
lea ecx, [esp + 0x4c]
call fcn.004018a0
lea ecx, [esp + 0x20]
jmp 0x4139d3
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x78]
mov dword [esp + 0x14], 0
call fcn.004018a0
lea ecx, [esp + 0x4c]
call fcn.004018a0
lea ecx, [esp + 0x20]
jmp 0x4139d3
push 0xe8
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x14], 0
call fcn.004018a0
lea ecx, [esp + 0x20]
jmp 0x4139d3
push 0x585
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], 0
jmp 0x4139d8
mov edx, dword [edi]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x80]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [esp + 0x84], ebx
call edx
test eax, eax
je 0x413761
mov eax, dword [esp + 0x80]
push eax
push 0x46eef0
lea ecx, [esp + 0xe0]
push 0xa
push ecx
call fcn.00454308
lea eax, [esp + 0xe8]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413730
sub eax, edx
lea edi, [eax + 1]
cmp dword [esi], edi
jb 0x412e31
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xd8]
push edx
push edi
push eax
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
jmp 0x4139d8
push 0xe8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], ebx
jmp 0x4139d8
mov edx, dword [edi]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x54]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [esp + 0x58], ebx
call edx
test eax, eax
je 0x413761
mov eax, dword [esp + 0x54]
push eax
push 0x46eef0
lea ecx, [esp + 0xf8]
push 0xa
push ecx
call fcn.00454308
lea eax, [esp + 0x100]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4137b3
sub eax, edx
lea edi, [eax + 1]
cmp dword [esi], edi
jb 0x412e31
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xf0]
push edx
push edi
push eax
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
jmp 0x4139d8
mov edx, dword [edi]
mov edx, dword [edx + 0x44]
lea eax, [esp + 0x58]
xor ebp, ebp
push eax
mov ecx, edi
mov dword [esp + 0x5c], ebp
call edx
test eax, eax
je 0x41383c
mov ebx, dword [esp + 0x58]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413805
sub eax, edx
lea edi, [eax + 1]
cmp dword [esi], edi
jb 0x41382b
mov eax, dword [esp + 0x18]
push ebx
push edi
push eax
call fcn.00453ad5
add esp, 0xc
mov dword [esi], edi
jmp 0x4139d8
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], ebp
jmp 0x4139d8
push 0xe8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], ebp
jmp 0x4139d8
mov edx, dword [edi]
mov edx, dword [edx + 0x44]
lea eax, [esp + 0x60]
xor ebp, ebp
push eax
mov ecx, edi
mov dword [esp + 0x64], ebp
call edx
test eax, eax
je 0x41383c
mov ebx, dword [esp + 0x60]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413871
jmp 0x41380c
mov ecx, dword [edi + 0xac]
lea eax, [edi + 0xac]
xor ebx, ebx
cmp dword [ecx - 0xc], ebx
je 0x413761
push eax
lea ecx, [esp + 0x30]
call fcn.00401880
mov edi, dword [esp + 0x2c]
mov ebp, dword [edi - 0xc]
inc ebp
mov dword [esp + 0x324], 2
cmp dword [esi], ebp
jb 0x4138c5
mov edx, dword [esp + 0x18]
push edi
push ebp
push edx
call fcn.00453ad5
add esp, 0xc
mov dword [esi], ebp
jmp 0x4138d1
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], ebx
mov esi, dword [edi - 0xc]
cmp esi, ebx
je 0x41392e
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
sub ecx, esi
or eax, ecx
jge 0x4138f7
push esi
lea ecx, [esp + 0x30]
call fcn.004017a0
mov edi, dword [esp + 0x2c]
mov eax, edi
lea esp, [esp]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x413900
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00450e3f
add esp, 8
cmp eax, ebx
jl 0x413267
cmp eax, dword [edi - 8]
jg 0x413267
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
lea ecx, [esp + 0x2c]
jmp 0x4139d3
add edi, 0xa8
push edi
lea ecx, [esp + 0x38]
call fcn.00401880
mov edi, dword [esp + 0x34]
mov ebp, dword [edi - 0xc]
xor ebx, ebx
inc ebp
mov dword [esp + 0x324], ebx
cmp dword [esi], ebp
jb 0x41396f
mov edx, dword [esp + 0x18]
push edi
push ebp
push edx
call fcn.00453ad5
add esp, 0xc
mov dword [esi], ebp
jmp 0x41397b
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x14], ebx
mov esi, dword [edi - 0xc]
cmp esi, ebx
je 0x4139cf
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
sub ecx, esi
or eax, ecx
jge 0x4139a1
push esi
lea ecx, [esp + 0x38]
call fcn.004017a0
mov edi, dword [esp + 0x34]
mov eax, edi
mov byte [eax], bl
inc eax
sub esi, 1
jne 0x4139a3
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00450e3f
add esp, 8
cmp eax, ebx
jl 0x413267
cmp eax, dword [edi - 8]
jg 0x413267
mov dword [edi - 0xc], eax
mov byte [eax + edi], bl
lea ecx, [esp + 0x34]
call fcn.004018a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x31c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x304]
xor ecx, esp
call fcn.004517f0
add esp, 0x314
ret 0x10