Function at 0x402f80
Capabilities:
Extract http body
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40c537
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x41901c]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41901c]
xor eax, esp
push eax
lea eax, [esp + 0x10c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x11c]
mov esi, ecx
push str.func
lea ecx, [esp + 0x7c]
mov dword [esp + 0x3c], ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0xec]
push ecx
mov ecx, esi
mov dword [esp + 0x11c], 0
call dword [sym.imp.K8Common.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_GameMgr::GMJsonValue::GetStringMember_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x78]
mov byte [esp + 0x114], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push str.argc
lea ecx, [esp + 0xb4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [esp + 0xb0]
push edx
mov ecx, esi
mov byte [esp + 0x118], 3
call dword [sym.imp.K8Common.dll_public:_unsigned_int___thiscall_GameMgr::GMJsonValue::GetUInt32Member_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__const]
mov ebx, eax
lea ecx, [esp + 0xb0]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x114], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push str.argv
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.K8Common.dll_public:_class_GameMgr::GMJsonValueRetRef___thiscall_GameMgr::GMJsonValue::operator___char_const__const]
mov ecx, ebp
mov byte [esp + 0x114], 4
call dword [sym.imp.K8UIRender.dll_public:_struct_IDispatch____thiscall_GameMgr::GMWebBrowser::GetHtmlDocument_void_]
mov edi, eax
xor eax, eax
cmp edi, eax
mov dword [esp + 0x28], edi
jne 0x4030b0
lea ecx, [esp + 0x30]
mov byte [esp + 0x114], 2
call dword [sym.imp.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMJsonValueRetRef::destructor_void_]
lea ecx, [esp + 0xe8]
mov dword [esp + 0x114], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 0x80004001
jmp 0x4033e2
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov ecx, dword [edi]
mov eax, dword [ecx]
push str._D_3
push edi
call eax
mov esi, eax
test esi, esi
jl 0x40337e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40337e
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x1b0]
call eax
mov esi, eax
test esi, esi
jl 0x40337e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40337e
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x40e78c
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
test esi, esi
jl 0x40337e
cmp dword [esp + 0x14], 0
je 0x40338e
mov ecx, ebx
lea esi, [esp + 0x68]
call fcn.004036b0
xor ecx, ecx
mov eax, ebx
mov edx, 0x10
mul edx
seto cl
mov byte [esp + 0x114], 5
neg ecx
or ecx, eax
push ecx
call fcn.0040aea8
add esp, 4
test ebx, ebx
mov edi, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
jbe 0x4032e0
mov ebp, dword [sym.imp.K8Common.dll_public:_class_GameMgr::GMJsonValueRetRef___thiscall_GameMgr::GMJsonValue::operator___unsigned_int_const]
lea esp, [esp]
sub ebx, dword [esp + 0x20]
lea eax, [esp + 0x50]
lea esi, [ebx - 1]
push esi
push eax
lea ecx, [esp + 0x38]
call ebp
mov byte [esp + 0x114], 6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
call eax
lea ecx, [esp + 0x50]
mov bl, al
mov byte [esp + 0x114], 5
call dword [sym.imp.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMJsonValueRetRef::destructor_void_]
test bl, bl
push esi
je 0x403208
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x38]
mov word [edi], 3
call ebp
mov byte [esp + 0x114], 7
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x60]
mov dword [edi + 8], eax
mov byte [esp + 0x114], 5
call dword [sym.imp.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMJsonValueRetRef::destructor_void_]
jmp 0x4032be
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x38]
call ebp
mov byte [esp + 0x114], 8
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0x94]
push ecx
mov ecx, eax
call edx
mov byte [esp + 0x114], 9
cmp dword [eax + 0x18], 0x10
jb 0x40323f
mov eax, dword [eax + 4]
jmp 0x403242
add eax, 4
push 0xfde9
push 0xffffffffffffffff
push eax
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMStringConvert::MultiByteToUnicodeString_char_const___int__unsigned_int_]
add esp, 0x10
lea ecx, [esp + 0x94]
mov byte [esp + 0x114], 0xb
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x58]
mov byte [esp + 0x114], 0xc
call dword [sym.imp.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMJsonValueRetRef::destructor_void_]
cmp dword [esp + 0xe4], 8
mov eax, dword [esp + 0xd0]
mov word [edi], 8
jae 0x40329f
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [esp + 0xcc]
mov dword [edi + 8], eax
mov byte [esp + 0x114], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
add eax, 1
add edi, 0x10
cmp eax, ebx
mov dword [esp + 0x20], eax
jb 0x403190
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0xe8]
push ecx
lea edx, [esp + 0xb4]
push edx
call dword [sym.imp.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMStringConvert::GMStringToGMStringW_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 8
mov byte [esp + 0x114], 0xd
cmp dword [esp + 0xc8], 8
mov eax, dword [esp + 0xb4]
jae 0x403319
lea eax, [esp + 0xb4]
mov edx, dword [esp + 0x14]
push ebx
push edi
lea ecx, [esp + 0x44]
push ecx
push eax
push edx
mov ecx, ebp
call dword [sym.imp.K8UIRender.dll_public:_long_int___thiscall_GameMgr::GMWebBrowser::InvokeMethod_struct_IDispatch___wchar_t___struct_tagVARIANT___struct_tagVARIANT___int_]
push edi
mov esi, eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0xb0]
mov byte [esp + 0x114], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x114], 4
mov edi, dword [esp + 0x6c]
test edi, edi
je 0x40337a
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x70]
push eax
mov eax, edi
call fcn.004050d0
add esp, 4
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40338e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40339e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4033ae
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x114], 2
call dword [sym.imp.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMJsonValueRetRef::destructor_void_]
lea ecx, [esp + 0xe8]
mov dword [esp + 0x114], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.0040af16
add esp, 0x104
ret 4