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

Disassembly:
sub esp, 0x8ec
mov eax, dword [0x1000e020]
xor eax, esp
mov dword [esp + 0x8e8], eax
mov ecx, dword [esp + 0x8f8]
push ebx
mov ebx, dword [esp + 0x8f4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x904]
push ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.lua54.dll_lua_gettop]
mov ebp, dword [sym.imp.lua54.dll_luaL_error]
xorps xmm0, xmm0
add esp, 4
mov dword [esp + 0xcc], 0
cmp dword [edi + 8], 0
mov esi, eax
movups xmmword [esp + 0xbc], xmm0
mov dword [esp + 0xd0], 0xf
mov byte [esp + 0xbc], 0
mov dword [esp + 0x18], 0x824
je 0x100047da
cmp byte [edi + 0xe9], 0
jne 0x100047da
movups xmm0, xmmword [edi + 0x88]
sub esp, 0x18
mov eax, esp
push str.current__s_request_is_not_finished
movups xmmword [eax], xmm0
push ebx
movq xmm0, qword [edi + 0x98]
movq qword [eax + 0x10], xmm0
call ebp
add esp, 0x20
push 0
push 0x1000b6d8
push 2
push ebx
call dword [sym.imp.lua54.dll_luaL_optlstring]
mov edx, eax
mov dword [esp + 0x94], 0
mov ecx, edx
mov dword [esp + 0x98], 0
xorps xmm0, xmm0
add esp, 0x10
movups xmmword [esp + 0x74], xmm0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004812
sub ecx, edi
push ecx
push edx
lea ecx, [esp + 0x7c]
call fcn.10002510
mov edi, dword [esp + 0x20]
cmp byte [edi], 0x47
jne 0x100049eb
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x64], 0
jne 0x100049eb
cmp esi, 2
jle 0x10004973
push 5
push 3
push ebx
call dword [sym.imp.lua54.dll_luaL_checktype]
push ebx
call dword [sym.imp.lua54.dll_lua_pushnil]
push 3
push ebx
call dword [sym.imp.lua54.dll_lua_next]
add esp, 0x18
test eax, eax
je 0x10004973
mov edi, dword [sym.imp.lua54.dll_lua_isstring]
mov ecx, 0x1000b6e0
mov ebx, dword [sym.imp.lua54.dll_lua_tolstring]
nop dword [eax]
nop word [eax + eax]
cmp dword [esp + 0xcc], 0
mov edx, 0x1000b6dc
cmovne edx, ecx
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100048a5
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0xc4]
call fcn.100044e0
mov esi, dword [esp + 0x10]
push 0xfffffffffffffffe
push esi
call edi
add esp, 8
test eax, eax
je 0x100048d8
push 0xffffffffffffffff
push esi
call edi
add esp, 8
test eax, eax
jne 0x100048e3
push 0x1000b6e4
push esi
call ebp
add esp, 8
push 0
push 0xfffffffffffffffe
push esi
call ebx
mov edx, eax
add esp, 0xc
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x100048f2
sub edx, esi
lea ecx, [esp + 0xbc]
push edx
push eax
call fcn.100044e0
push 1
push 0x1000b5fc
lea ecx, [esp + 0xc4]
call fcn.100044e0
push 0
push 0xffffffffffffffff
push dword [esp + 0x18]
call ebx
mov edx, eax
add esp, 0xc
lea esi, [edx + 1]
nop
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x10004930
sub edx, esi
lea ecx, [esp + 0xbc]
push edx
push eax
call fcn.100044e0
mov esi, dword [esp + 0x10]
push 0xfffffffffffffffe
push esi
call dword [sym.imp.lua54.dll_lua_settop]
push 3
push esi
call dword [sym.imp.lua54.dll_lua_next]
add esp, 0x10
mov ecx, 0x1000b6e0
test eax, eax
jne 0x10004890
mov edi, dword [esp + 0x20]
mov ebx, esi
cmp dword [esp + 0xd0], 0x10
lea ecx, [esp + 0x18]
push 0x2000000
push ecx
lea ecx, [esp + 0xdc]
lea eax, [esp + 0xc4]
cmovae eax, dword [esp + 0xc4]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
jne 0x100049c4
cmp dword [esp + 0x88], 0x10
lea eax, [esp + 0x74]
cmovae eax, dword [esp + 0x74]
push eax
push str.failed_to_encode_URI__s
push ebx
call ebp
add esp, 0xc
lea ecx, [esp + 0xd4]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100049d0
sub ecx, edx
lea eax, [esp + 0xd4]
push ecx
push eax
lea ecx, [esp + 0x7c]
call fcn.100044e0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100049f0
mov ebp, dword [esp + 0x14]
sub ecx, edx
push ecx
push edi
lea esi, [ebp + 0x88]
mov ecx, esi
call fcn.10004630
push 0
push 0x1000b5ee
lea ecx, [ebp + 0x4c]
mov dword [ebp + 0xec], 0
mov byte [ebp + 0xe9], 0
call fcn.10004630
mov edi, dword [ebp + 0xb0]
lea ecx, [ebp + 0xa0]
mov ebx, dword [esp + 0x84]
mov eax, bind
sub eax, edi
cmp eax, ebx
jb 0x100052e8
cmp dword [ecx + 0x14], 0x10
mov edx, ecx
jb 0x10004a58
mov edx, dword [ecx]
cmp dword [esp + 0x88], 0x10
lea eax, [esp + 0x74]
push ebx
cmovae eax, dword [esp + 0x78]
push eax
push edi
push edx
push ecx
push dword [esp + 0x2c]
lea ecx, [esp + 0x5c]
call fcn.100029b0
cmp dword [esp + 0x58], 0x10
lea eax, [esp + 0x44]
push dword [esp + 0x54]
cmovae eax, dword [esp + 0x48]
lea ecx, [ebp + 0xb8]
push eax
call fcn.100044e0
mov ecx, dword [esp + 0x58]
cmp ecx, 0x10
jb 0x10004acf
mov edx, dword [esp + 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004ac5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100052ba
push ecx
push edx
call fcn.1000a0f8
add esp, 8
mov eax, dword [ebp + 8]
test eax, eax
je 0x10004add
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esi + 0x14], 0x10
jb 0x10004ae5
mov esi, dword [esi]
cmp dword [esp + 0x88], 0x10
lea ecx, [esp + 0x74]
push ebp
cmovae ecx, dword [esp + 0x78]
mov edx, 0x4c00000
cmp byte [ebp + 0x18], 0
mov eax, 0x4400000
cmovne eax, edx
push eax
push 0
push 0
push 0
push ecx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp + 8], eax
test eax, eax
je 0x1000522d
mov eax, dword [0x1000b740]
lea esi, [ebp + 0x10138]
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
movups xmmword [esp + 0x44], xmm0
mov ecx, esi
mov dword [esp + 0x4c], eax
movq xmm0, qword [str.content_type]
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x58], 0xc
push eax
mov dword [esp + 0x60], 0xf
movq qword [esp + 0x4c], xmm0
mov byte [esp + 0x58], 0
call fcn.10002810
mov ebx, dword [esp + 0x34]
cmp byte [ebx + 0xd], 0
jne 0x10004ba3
lea eax, [ebx + 0x10]
mov ecx, esi
push eax
lea eax, [esp + 0x48]
push eax
call fcn.100033c0
test al, al
jne 0x10004ba3
mov edi, dword [esi]
mov eax, 1
cmp ebx, edi
jne 0x10004c1d
jmp 0x10004ba5
mov edi, dword [esi]
mov eax, dword [0x1000b750]
xorps xmm0, xmm0
movups xmmword [esp + 0x5c], xmm0
mov ecx, esi
mov dword [esp + 0x64], eax
movq xmm0, qword [str.Content_Type]
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x70], 0xc
push eax
mov dword [esp + 0x78], 0xf
movq qword [esp + 0x64], xmm0
mov byte [esp + 0x70], 0
call fcn.10002810
mov ebx, dword [esp + 0x34]
cmp byte [ebx + 0xd], 0
jne 0x10004f6c
lea eax, [ebx + 0x10]
mov ecx, esi
push eax
lea eax, [esp + 0x60]
push eax
call fcn.100033c0
test al, al
jne 0x10004f6c
cmp ebx, edi
je 0x10004f6c
mov eax, 3
xor bl, bl
test al, 2
jne 0x10004f6e
mov ebx, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
cmp byte [eax + 0xd], 0
jne 0x100051a8
nop
lea esi, [eax + 0x10]
push esi
lea ecx, [esp + 0x90]
call fcn.10002900
lea eax, [esi + 0x18]
push eax
lea ecx, [esp + 0xa8]
call fcn.10002900
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x100050e8
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0x8c]
mov esi, dword [esp + 0x8c]
cmp edx, 0x10
cmovae eax, esi
cmp ecx, 6
jne 0x10004fad
cmp dword [eax], 0x6b6f6f43
jne 0x10004fad
cmp word [eax + 4], 0x6569
jne 0x10004fad
xor esi, esi
nop dword [eax]
cmp dword [esp + 0xb8], 0x10
lea ebp, [esp + 0xa4]
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0xb4]
cmovae ebp, edx
mov dword [esp + 0x1c], edx
cmp ebx, 1
jb 0x10004d25
lea eax, [ebx - 1]
cmp esi, eax
ja 0x10004d25
inc eax
lea ecx, [esi + ebp]
add eax, ebp
sub eax, ecx
push eax
push 0x3b
push ecx
call sub.VCRUNTIME140.dll_memchr
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10004d21
nop word [eax + eax]
cmp byte [edi], 0x3b
je 0x10004f9b
inc edi
lea eax, [ebx + ebp]
sub eax, edi
push eax
push 0x3b
push edi
call sub.VCRUNTIME140.dll_memchr
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10004d00
mov edx, dword [esp + 0x1c]
or edi, 0xffffffff
cmp edi, 0xffffffff
je 0x100050f1
mov dword [esp + 0x3c], 0
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
movups xmmword [esp + 0x2c], xmm0
cmp ebx, esi
jb 0x100052ed
mov ecx, edi
lea eax, [esp + 0xa4]
sub ecx, esi
sub ebx, esi
cmp ebx, ecx
cmovb ecx, ebx
cmp dword [esp + 0xb8], 0x10
push ecx
cmovae eax, edx
lea ecx, [esp + 0x30]
add eax, esi
push eax
call fcn.10002510
cmp dword [esp + 0xb8], 0x10
lea ebp, [esp + 0xa4]
mov eax, dword [esp + 0xb4]
cmovae ebp, dword [esp + 0xa4]
cmp eax, 1
jb 0x10004de1
dec eax
cmp esi, eax
ja 0x10004de1
lea ebx, [eax + ebp]
lea ecx, [esi + ebp]
lea eax, [ebx + 1]
sub eax, ecx
push eax
push 0x3d
push ecx
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10004de1
cmp byte [esi], 0x3d
je 0x10004fa6
inc esi
lea eax, [ebx + 1]
sub eax, esi
push eax
push 0x3d
push esi
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10004dc0
or esi, 0xffffffff
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0xcc], 0x10
lea ebx, [ecx + 0xb8]
jb 0x10004dfd
mov ebx, dword [ecx + 0xb8]
mov eax, dword [esp + 0x3c]
lea edx, [esi + 1]
mov dword [esp + 0x54], 0
xorps xmm0, xmm0
mov dword [esp + 0x58], 0
movups xmmword [esp + 0x44], xmm0
cmp eax, edx
jb 0x100052ed
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [esp + 0x40], 0x10
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push ecx
add eax, edx
lea ecx, [esp + 0x48]
push eax
call fcn.10002510
cmp dword [esp + 0x3c], esi
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
mov dword [esp + 0x6c], 0
cmovb esi, dword [esp + 0x3c]
lea ecx, [esp + 0x5c]
cmp dword [esp + 0x40], 0x10
push esi
cmovae eax, dword [esp + 0x30]
push eax
movups xmmword [esp + 0x64], xmm0
mov dword [esp + 0x78], 0
call fcn.10002510
cmp dword [esp + 0x70], 0x10
lea ecx, [esp + 0x5c]
lea eax, [esp + 0x44]
cmovae ecx, dword [esp + 0x5c]
cmp dword [esp + 0x58], 0x10
cmovae eax, dword [esp + 0x44]
push eax
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetSetCookieA]
mov ecx, dword [esp + 0x70]
cmp ecx, 0x10
jb 0x10004edf
mov edx, dword [esp + 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004ed5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100052ba
push ecx
push edx
call fcn.1000a0f8
add esp, 8
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0xf
mov byte [esp + 0x5c], 0
cmp ecx, 0x10
jb 0x10004f2a
mov edx, dword [esp + 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004f20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100052ba
push ecx
push edx
call fcn.1000a0f8
add esp, 8
mov ecx, dword [esp + 0x40]
lea esi, [edi + 1]
cmp ecx, 0x10
jb 0x10004cb0
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004f5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100052ba
push ecx
push edx
call fcn.1000a0f8
add esp, 8
jmp 0x10004cb0
mov bl, 1
lea ecx, [esp + 0x5c]
call fcn.10002e50
test bl, bl
mov ebx, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
je 0x10004c2d
push 0xa0000000
push 0xffffffffffffffff
push str.Content_Type:_text_plain
push dword [ebp + 8]
call ebx
jmp 0x10004c2d
mov edx, dword [esp + 0x1c]
sub edi, ebp
jmp 0x10004d28
sub esi, ebp
jmp 0x10004de4
mov eax, bind
sub eax, ecx
cmp eax, 2
jb 0x100052e8
push 2
push 0x1000b77c
cmp edx, 0x10
lea eax, [esp + 0x94]
push ecx
cmovae eax, esi
lea ecx, [esp + 0x50]
push eax
lea eax, [esp + 0x9c]
push eax
push dword [esp + 0x2c]
call fcn.100029b0
cmp dword [esp + 0xb8], 0x10
lea eax, [esp + 0xa4]
push dword [esp + 0xb4]
cmovae eax, dword [esp + 0xa8]
lea ecx, [esp + 0x48]
push eax
call fcn.100044e0
mov dword [esp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [esp + 0x2c], xmm0
mov dword [esp + 0x40], 0
movups xmm0, xmmword [eax]
push 0xa0000000
push 0xffffffffffffffff
movups xmmword [esp + 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0x44], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [esp + 0x34]
cmp dword [esp + 0x48], 0x10
cmovae eax, dword [esp + 0x34]
push eax
push dword [ebp + 8]
call ebx
mov ecx, dword [esp + 0x40]
cmp ecx, 0x10
jb 0x1000509d
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005093
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100052ba
push ecx
push edx
call fcn.1000a0f8
add esp, 8
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0xf
mov byte [esp + 0x2c], 0
cmp ecx, 0x10
jb 0x100050e8
mov edx, dword [esp + 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100050de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100052ba
push ecx
push edx
call fcn.1000a0f8
add esp, 8
mov ecx, dword [esp + 0xa4]
jmp 0x100050f9
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0xb8]
cmp eax, 0x10
jb 0x10005130
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x10005126
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100052ba
push edx
push ecx
call fcn.1000a0f8
add esp, 8
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0xf
mov byte [esp + 0xa4], 0
cmp ecx, 0x10
jb 0x1000518a
mov edx, dword [esp + 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005180
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100052ba
push ecx
push edx
call fcn.1000a0f8
add esp, 8
lea ecx, [esp + 0x24]
call fcn.10003360
mov eax, dword [esp + 0x24]
cmp byte [eax + 0xd], 0
jne 0x100051a8
mov ebx, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
jmp 0x10004c40
push 0x10003b20
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp byte [ecx], 0x50
sete al
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x1012c], eax
lea eax, [esp + 0x28]
push eax
push ebp
call fcn.100037a0
add esp, 8
cmp dword [esp + 0x28], 0x3e5
jne 0x1000522d
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.lua54.dll_lua_pushvalue]
push 1
push ebx
call esi
push 1
push 0x10004160
push ebx
call dword [sym.imp.lua54.dll_lua_pushcclosure]
push 1
push str.Task
push ebx
call dword [sym.imp.lua54.dll_lua_pushnewinstance]
push 0xffffffffffffffff
push ebx
call esi
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.lua54.dll_lua_callk]
add esp, 0x3c
jmp 0x1000523c
push 0
push dword [esp + 0x14]
call dword [sym.imp.lua54.dll_lua_pushboolean]
add esp, 8
mov ecx, dword [esp + 0x88]
cmp ecx, 0x10
jb 0x10005271
mov edx, dword [esp + 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005267
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100052ba
push ecx
push edx
call fcn.1000a0f8
add esp, 8
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0xf
mov byte [esp + 0x74], 0
cmp ecx, 0x10
jb 0x100052ca
mov edx, dword [esp + 0xbc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100052c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100052c0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1000a0f8
add esp, 8
mov ecx, dword [esp + 0x8f8]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000a106
add esp, 0x8ec
ret
call fcn.10004470
call fcn.10004480
int3