Function at 0x4397e8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x8ec
mov eax, dword [0x44b240]
xor eax, esp
mov dword [esp + 0x8e8], eax
mov eax, dword [esp + 0x8f8]
and dword [esp + 0x10], 0
push ebx
mov ebx, dword [esp + 0x8f4]
push ebp
mov ebp, dword [esp + 0x8fc]
push esi
push edi
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], eax
call dword [0x44663c]
mov esi, eax
mov dword [esp + 0x28], 0x824
xor eax, eax
mov dword [esp + 0x18], esi
lea edi, [esp + 0x30]
stosd dword es:[edi], eax
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [esp + 0x3c], 0
cmp dword [ebp + 8], 0
mov dword [esp + 0x40], 0xf
mov byte [esp + 0x2c], 0
je 0x439886
cmp byte [ebp + 0xe9], 0
jne 0x439886
sub esp, 0x18
lea esi, [ebp + 0x88]
push 6
pop ecx
mov edi, esp
push str.current__s_request_is_not_finished
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [0x44668c]
mov esi, dword [esp + 0x34]
add esp, 0x20
push 0
push 0x445478
push 2
push ebx
call dword [0x4466e0]
add esp, 0x10
lea ecx, [esp + 0x74]
push eax
call fcn.004385cd
mov edi, dword [esp + 0x1c]
cmp byte [edi], 0x47
jne 0x439a3e
cmp byte [ebp + 0x64], 0
jne 0x439a3e
cmp esi, 2
jle 0x4399cd
push 5
push 3
push ebx
call dword [0x4466e4]
push ebx
call dword [0x446658]
mov esi, dword [sym.luart.exe_lua_next]
push 3
push ebx
call esi
add esp, 0x18
test eax, eax
je 0x4399cd
mov edi, dword [sym.luart.exe_lua_isstring]
cmp dword [esp + 0x3c], 0
mov eax, 0x445a80
mov edx, 0x43f7ac
cmovne edx, eax
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43990c
sub ecx, dword [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x34]
call fcn.004396dc
push 0xfffffffffffffffe
push ebx
call edi
pop ecx
pop ecx
test eax, eax
je 0x439938
push 0xffffffffffffffff
push ebx
call edi
pop ecx
pop ecx
test eax, eax
jne 0x439946
push str.malformed_table_3__expecting_string_keys_and_values
push ebx
call dword [0x44668c]
pop ecx
pop ecx
push 0
push 0xfffffffffffffffe
push ebx
call dword [0x446650]
mov edx, eax
add esp, 0xc
lea ecx, [edx + 1]
mov dword [esp + 0x14], ecx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x43995d
sub edx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push edx
push eax
call fcn.004396dc
push 1
push 0x4459c4
lea ecx, [esp + 0x34]
call fcn.004396dc
push 0
push 0xffffffffffffffff
push ebx
call dword [0x446650]
mov edx, eax
add esp, 0xc
lea ecx, [edx + 1]
mov dword [esp + 0x14], ecx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x43999a
sub edx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push edx
push eax
call fcn.004396dc
push 0xfffffffffffffffe
push ebx
call dword [0x446640]
push 3
push ebx
call esi
add esp, 0x10
test eax, eax
jne 0x4398f1
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x40], 0xf
lea ecx, [esp + 0x24]
push 0x2000000
push ecx
lea ecx, [esp + 0xdc]
lea eax, [esp + 0x34]
cmova eax, dword [esp + 0x34]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
jne 0x439a19
cmp dword [esp + 0x88], 0xf
lea eax, [esp + 0x74]
cmova eax, dword [esp + 0x74]
push eax
push str.failed_to_encode_URI__s
push ebx
call dword [0x44668c]
add esp, 0xc
lea ecx, [esp + 0xd4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x439a23
sub ecx, edx
lea eax, [esp + 0xd4]
push ecx
push eax
lea ecx, [esp + 0x7c]
call fcn.004396dc
lea esi, [ebp + 0x88]
push edi
mov ecx, esi
call fcn.00439735
xor eax, eax
lea ecx, [ebp + 0x4c]
push eax
push 0x43f7a9
mov dword [ebp + 0xec], eax
mov byte [ebp + 0xe9], al
call fcn.00439754
lea eax, [esp + 0x74]
push eax
lea eax, [ebp + 0xa0]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00437c60
add esp, 0xc
lea ecx, [ebp + 0xb8]
push eax
call fcn.004396a3
lea ecx, [esp + 0x5c]
call fcn.00439667
cmp dword [ebp + 8], 0
je 0x439aa5
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esi + 0x14], 0xf
jbe 0x439aad
mov esi, dword [esi]
cmp dword [esp + 0x88], 0xf
lea ecx, [esp + 0x74]
push ebp
cmova ecx, dword [esp + 0x78]
mov edx, 0x4c00000
cmp byte [ebp + 0x18], 0
mov eax, 0x4400000
cmovne eax, edx
push eax
xor eax, eax
push eax
push eax
push eax
push ecx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp + 8], eax
test eax, eax
je 0x439df4
and dword [esp + 0x14], 0
lea ecx, [esp + 0x44]
push str.content_type
call fcn.004385cd
lea eax, [esp + 0x44]
mov dword [esp + 0x18], 1
lea esi, [ebp + 0x10138]
push eax
mov ecx, esi
call fcn.00437ee7
cmp eax, dword [esi]
jne 0x439b4a
push str.Content_Type
lea ecx, [esp + 0x60]
call fcn.004385cd
lea eax, [esp + 0x5c]
mov dword [esp + 0x18], 3
push eax
mov ecx, esi
call fcn.00437ee7
cmp eax, dword [esi]
jne 0x439b4a
mov byte [esp + 0x13], 1
jmp 0x439b56
test byte [esp + 0x18], 2
mov byte [esp + 0x13], 0
je 0x439b5f
lea ecx, [esp + 0x5c]
call fcn.00439667
lea ecx, [esp + 0x44]
call fcn.00439667
cmp byte [esp + 0x13], 0
je 0x439b84
push 0xa0000000
push 0xffffffffffffffff
push str.Content_Type:_text_plain
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
cmp byte [eax + 0xd], 0
jne 0x439d7a
lea ebx, [ebp + 0xb8]
lea esi, [eax + 0x10]
push esi
lea ecx, [esp + 0x90]
call fcn.0043854b
lea eax, [esi + 0x18]
push eax
lea ecx, [esp + 0xa8]
call fcn.0043854b
cmp dword [esp + 0x9c], 0
je 0x439d43
push str.Cookie
lea ecx, [esp + 0x90]
call fcn.0043944a
test al, al
je 0x439cc8
xor esi, esi
push esi
jmp 0x439caa
lea eax, [esp + 0x13]
push eax
mov eax, edi
lea ecx, [esp + 0x60]
sub eax, esi
push eax
push esi
lea eax, [esp + 0xb0]
push eax
call fcn.0043857f
push esi
push 0x4459c4
lea ecx, [esp + 0xac]
call fcn.00439e6e
cmp dword [ebx + 0x14], 0xf
mov esi, ebx
mov dword [esp + 0x20], eax
jbe 0x439c27
mov esi, dword [ebx]
lea ecx, [esp + 0x13]
inc eax
push ecx
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x54]
call fcn.0043857f
lea eax, [esp + 0x13]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x64]
push 0
push eax
lea ecx, [esp + 0xcc]
call fcn.0043857f
cmp dword [esp + 0xd0], 0xf
lea ecx, [esp + 0xbc]
lea eax, [esp + 0x44]
cmova ecx, dword [esp + 0xbc]
cmp dword [esp + 0x58], 0xf
cmova eax, dword [esp + 0x44]
push eax
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetSetCookieA]
lea ecx, [esp + 0xbc]
call fcn.00439667
lea ecx, [esp + 0x44]
call fcn.00439667
lea ecx, [esp + 0x5c]
lea esi, [edi + 1]
call fcn.00439667
push esi
push 0x441794
lea ecx, [esp + 0xac]
call fcn.00439e6e
mov edi, eax
cmp edi, 0xffffffff
jne 0x439beb
jmp 0x439d43
push 0x445b1c
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00437ca9
add esp, 0xc
lea ecx, [esp + 0xa4]
cmp dword [esp + 0xb8], 0xf
cmova ecx, dword [esp + 0xa4]
push dword [esp + 0xb4]
push ecx
mov ecx, eax
call fcn.004396dc
push eax
lea ecx, [esp + 0x48]
call fcn.00438515
cmp dword [esp + 0x58], 0xf
lea eax, [esp + 0x44]
push 0xa0000000
cmova eax, dword [esp + 0x48]
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
lea ecx, [esp + 0x44]
call fcn.00439667
lea ecx, [esp + 0x5c]
call fcn.00439667
lea ecx, [esp + 0xa4]
call fcn.00439667
lea ecx, [esp + 0x8c]
call fcn.00439667
lea ecx, [esp + 0x18]
call fcn.00438900
mov eax, dword [esp + 0x18]
cmp byte [eax + 0xd], 0
je 0x439b9c
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
push 0x438f0a
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
xor eax, eax
cmp byte [edi], 0x50
sete al
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x1012c], eax
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.00438cc0
cmp dword [esp + 0x1c], 0x3e5
pop ecx
pop ecx
jne 0x439df4
mov esi, dword [sym.luart.exe_lua_pushvalue]
push 1
push ebx
call esi
push 1
push 0x439367
push ebx
call dword [0x4466bc]
push 1
push str.Task
push ebx
call dword [0x446698]
push 0xffffffffffffffff
push ebx
call esi
xor eax, eax
push eax
push eax
push eax
push eax
push ebx
call dword [0x4466d0]
add esp, 0x3c
jmp 0x439dff
push 0
push ebx
call dword [0x446668]
pop ecx
pop ecx
lea ecx, [esp + 0x74]
call fcn.00439667
lea ecx, [esp + 0x2c]
call fcn.00439667
mov ecx, dword [esp + 0x8f8]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
inc eax
call fcn.0043cf52
add esp, 0x8ec
ret