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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40c62e
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x41901c]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
mov eax, dword [0x41901c]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x2c], eax
mov eax, ecx
sub eax, 0x12c
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edx
je 0x402e5f
mov edx, 1
sub eax, edx
je 0x402e39
sub eax, 0x7c
je 0x402cb5
lea ebx, [esp + 0x14]
lea eax, [esp + 0xe4]
mov dword [esp + 0x14], ecx
call fcn.00403500
mov eax, dword [0x41970c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xe4]
test eax, eax
je 0x4028cb
cmp eax, 0x419708
je 0x4028d1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0xe8]
cmp ebx, dword [esp + 0x28]
je 0x402c88
push 7
lea ecx, [esp + 0x28]
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMJsonValue::constructor_enum_GameMgr::GMJsonValue::GMJsonValueType_]
mov dword [esp + 0x118], 2
mov esi, dword [esp + 0xe4]
test esi, esi
jne 0x40290a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 4]
jne 0x402915
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebx + 0xc]
push ecx
lea ecx, [esp + 0xa0]
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMJsonValue::constructor_unsigned_int_]
mov esi, eax
push str.funcid
lea edx, [esp + 0x48]
mov byte [esp + 0x11c], 3
mov ebx, dword [sym.imp.K8Common.dll_public:_class_GameMgr::GMJsonValueRetRef___thiscall_GameMgr::GMJsonValue::operator___char_const__]
push edx
lea ecx, [esp + 0x2c]
call ebx
push esi
mov ecx, eax
mov byte [esp + 0x11c], 4
call dword [sym.imp.K8Common.dll_public:_class_GameMgr::GMJsonValueRetRef____thiscall_GameMgr::GMJsonValueRetRef::operator_class_GameMgr::GMJsonValue_const__]
mov byte [esp + 0x118], 3
mov edi, dword [sym.imp.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMJsonValueRetRef::destructor_void_]
lea ecx, [esp + 0x44]
call edi
mov byte [esp + 0x118], 2
mov esi, dword [sym.imp.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMJsonValue::destructor_void_]
lea ecx, [esp + 0x9c]
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
push ecx
lea ecx, [esp + 0x90]
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMJsonValue::constructor_unsigned_int_]
mov dword [esp + 0x14], eax
push str.argc
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x120], 5
call ebx
mov byte [esp + 0x118], 6
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, eax
call dword [sym.imp.K8Common.dll_public:_class_GameMgr::GMJsonValueRetRef____thiscall_GameMgr::GMJsonValueRetRef::operator_class_GameMgr::GMJsonValue_const__]
lea ecx, [esp + 0x54]
mov byte [esp + 0x118], 5
call edi
lea ecx, [esp + 0x8c]
mov byte [esp + 0x118], 2
call esi
mov edx, dword [esp + 0x18]
cmp dword [edx + 8], 0
jbe 0x402c5f
push 6
lea ecx, [esp + 0x68]
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMJsonValue::constructor_enum_GameMgr::GMJsonValue::GMJsonValueType_]
mov dword [esp + 0x14], eax
push str.argv
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x120], 7
call ebx
mov byte [esp + 0x118], 8
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, eax
call dword [sym.imp.K8Common.dll_public:_class_GameMgr::GMJsonValueRetRef____thiscall_GameMgr::GMJsonValueRetRef::operator_class_GameMgr::GMJsonValue_const__]
lea ecx, [esp + 0x34]
mov byte [esp + 0x118], 7
call edi
lea ecx, [esp + 0x64]
mov byte [esp + 0x118], 2
call esi
mov edx, dword [esp + 0x18]
xor eax, eax
cmp dword [edx + 8], eax
mov dword [esp + 0x14], eax
jbe 0x402c5f
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
add eax, dword [esp + 0x1c]
movzx ecx, word [eax]
add ecx, 0xfffffffe
cmp ecx, 0x15
ja case.0x402a85.4
movzx ecx, byte [ecx + 0x402ee8]
jmp dword [ecx*4 + 0x402edc]
mov edx, dword [eax + 8]
push edx
lea ecx, [esp + 0x40]
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMJsonValue::constructor_unsigned_int_]
mov dword [esp + 0x20], eax
push str.argv
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x120], 9
call ebx
mov byte [esp + 0x118], 0xa
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x70]
push edx
mov ecx, eax
call dword [sym.imp.K8Common.dll_public:_class_GameMgr::GMJsonValue___thiscall_GameMgr::GMJsonValue::Append_class_GameMgr::GMJsonValue_const__]
lea ecx, [esp + 0x6c]
call esi
lea ecx, [esp + 0x74]
mov byte [esp + 0x118], 9
call edi
lea ecx, [esp + 0x3c]
jmp 0x402c38
mov eax, dword [eax + 8]
push eax
lea ecx, [esp + 0xb0]
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__::constructor_wchar_t_const__]
push 0xfde9
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0xd0]
push edx
mov byte [esp + 0x124], 0xb
call dword [sym.imp.K8Common.dll_public:_static_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_GameMgr::GMStringConvert::UnicodeStringToMultiByte_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int_]
add esp, 0xc
mov byte [esp + 0x118], 0xc
cmp dword [eax + 0x18], 0x10
jb 0x402b37
mov eax, dword [eax + 4]
jmp 0x402b3a
add eax, 4
push eax
lea ecx, [esp + 0x88]
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMJsonValue::constructor_char_const__]
mov dword [esp + 0x20], eax
push str.argv
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x120], 0xd
call ebx
mov byte [esp + 0x118], 0xe
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x50]
push edx
mov ecx, eax
call dword [sym.imp.K8Common.dll_public:_class_GameMgr::GMJsonValue___thiscall_GameMgr::GMJsonValue::Append_class_GameMgr::GMJsonValue_const__]
lea ecx, [esp + 0x4c]
call esi
lea ecx, [esp + 0x5c]
mov byte [esp + 0x118], 0xd
call edi
lea ecx, [esp + 0x84]
mov byte [esp + 0x118], 0xc
call esi
lea ecx, [esp + 0xc8]
mov byte [esp + 0x118], 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 + 0xac]
mov byte [esp + 0x118], 2
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_]
jmp 0x402c42
push 0
lea ecx, [esp + 0x80]
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMJsonValue::constructor_enum_GameMgr::GMJsonValue::GMJsonValueType_]
mov dword [esp + 0x20], eax
push str.argv
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x120], 0xf
call ebx
mov byte [esp + 0x118], 0x10
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x98]
push edx
mov ecx, eax
call dword [sym.imp.K8Common.dll_public:_class_GameMgr::GMJsonValue___thiscall_GameMgr::GMJsonValue::Append_class_GameMgr::GMJsonValue_const__]
lea ecx, [esp + 0x94]
call esi
lea ecx, [esp + 0xa4]
mov byte [esp + 0x118], 0xf
call edi
lea ecx, [esp + 0x7c]
mov byte [esp + 0x118], 2
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add dword [esp + 0x1c], 0x10
add eax, 1
cmp eax, dword [ecx + 8]
mov dword [esp + 0x14], eax
jb 0x402a65
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x38]
push 2
push eax
lea ecx, [esp + 0x2c]
call fcn.00409bd0
lea ecx, [esp + 0x24]
mov dword [esp + 0x118], 0xffffffff
call esi
jmp 0x402eb4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [esp + 0x34]
push esi
push edi
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
call dword [sym.imp.K8UIRender.dll_public_virtual:_long_int___stdcall_GameMgr::GMWebBrowser::Invoke_long_int__struct__GUID_const___unsigned_long_int__unsigned_short_int__struct_tagDISPPARAMS___struct_tagVARIANT___struct_tagEXCEPINFO___unsigned_int__]
jmp 0x402eb6
xor esi, esi
cmp dword [edi + 8], esi
mov byte [esp + 0x1c], dl
jbe 0x402cca
mov edi, dword [edi]
cmp dword [edi + 8], esi
setne byte [esp + 0x1c]
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [ebx - 0x524]
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMActiveX::SetEnableScrollbar_bool_]
cmp dword [ebx + 8], esi
je 0x402eb4
mov eax, dword [ebx + 8]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x402eb4
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov edi, eax
push eax
mov dword [esp + 0x30], edi
call edx
mov dword [esp + 0x118], esi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x402e24
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov edi, eax
push eax
mov dword [esp + 0x24], edi
call edx
mov byte [esp + 0x118], 1
xor eax, eax
lea edx, [esp + 0xe4]
push edx
mov dword [esp + 0xea], eax
mov dword [esp + 0xee], eax
mov dword [esp + 0xf2], eax
mov word [esp + 0xf6], ax
mov eax, dword [esp + 0x1c]
push 2
mov word [esp + 0xec], si
mov ecx, dword [eax]
push str.scroll
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp word [esp + 0xe4], 8
jne 0x402dc5
mov eax, dword [esp + 0xec]
cmp eax, esi
je 0x402dc5
push 0x40ec28
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x402dc5
cmp byte [esp + 0x1c], al
je 0x402e10
mov ecx, 0x40e7bc
jmp 0x402dd1
cmp byte [esp + 0x1c], 0
jne 0x402e10
mov ecx, 0x40ec28
mov ebx, dword [esp + 0xe4]
mov edx, dword [esp + 0x18]
push 1
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0xfc]
mov dword [eax + 4], ebx
mov dword [esp + 0x100], ecx
mov esi, dword [edx]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x104]
push str.scroll
push edx
mov edx, dword [esi + 0x1c]
mov dword [eax + 0xc], ecx
call edx
mov byte [esp + 0x118], 0
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x118], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
jmp 0x402eb4
cmp dword [edi + 8], 0
jbe 0x402e55
mov ecx, dword [edi]
cmp dword [ecx + 8], 4
mov word [esi], 0x16
jl 0x402e5a
mov dword [esi + 8], 0
jmp 0x402eb4
mov word [esi], 0x16
mov dword [esi + 8], edx
jmp 0x402eb4
push 0x1df9
push 1
push 2
push 5
lea edx, [esp + 0xf4]
push str._d._d._d._d
push edx
mov word [esi], 8
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::GMStringUtils::FormatResult_wchar_t_const__]
mov eax, dword [esp + 0x100]
add esp, 0x18
cmp dword [esp + 0xfc], 8
jae 0x402e9d
lea eax, [esp + 0xe8]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [esp + 0xe4]
mov dword [esi + 8], eax
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_]
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.0040af16
mov esp, ebp
pop ebp
ret 0x24