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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cb3db
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x100ed380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x40]
call fcn.1004ead0
mov dword [ebp - 4], 0
cmp byte [0x101bf44c], 0
je 0x1004ddbc
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x2c]
je 0x1004ddbc
push 0x101bf450
lea ecx, [ebp - 0x88]
call fcn.10027b30
mov byte [ebp - 4], 1
lea ecx, [edi + 4]
cmp dword [edi + 0x18], 0xf
mov edx, dword [0x10172d4c]
jbe 0x1004d5a2
mov ecx, dword [ecx]
cmp dword [ebp - 0x70], 0xf
lea eax, [ebp - 0x84]
push ecx
cmova eax, dword [ebp - 0x84]
push eax
call edx
push 0xb0
lea eax, [ebp - 0x138]
push 0
push eax
call sub.VCRUNTIME140D.dll_memset
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x138]
call fcn.1004e040
mov byte [ebp - 4], 2
cmp dword [ebp - 0xe8], 0
je 0x1004dd64
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x138]
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140D.dll_public:_bool___thiscall_std::ios_base::fail_void_const]
test al, al
jne 0x1004dd64
mov edi, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x144], eax
cmp edi, eax
je 0x1004dcdc
mov esi, dword [edi]
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
je 0x1004dcc7
push esi
lea ecx, [ebp - 0x2c]
call fcn.10027b30
mov byte [ebp - 4], 3
mov ebx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x1bc], eax
cmp ebx, eax
je 0x1004dca6
nop dword [eax]
mov edi, dword [ebx]
test byte [edi + 0x58], 8
je 0x1004dc8f
mov esi, dword [edi + 0x5c]
lea eax, [edi + 0x3c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10027b30
dec esi
mov byte [ebp - 4], 4
cmp esi, 6
ja case.default.0x1004d689
jmp dword [esi*4 + 0x1004dde4]
mov bl, byte [edi + 0x78]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
call fcn.1004e2e0
mov byte [ebp - 0x1c8], bl
xorps xmm0, xmm0
mov edi, dword [ebp - 0x1c8]
mov ebx, dword [ebp - 0x1c4]
movq qword [ebp - 0x190], xmm0
mov byte [ebp - 0x198], 4
mov dword [ebp - 0x190], edi
mov dword [ebp - 0x18c], ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.1004e2e0
lea ecx, [ebp - 0x198]
mov esi, eax
call fcn.10050e70
mov cl, byte [esi]
mov byte [esi], 4
mov edx, dword [esi + 0xc]
mov byte [ebp - 0x198], cl
mov ecx, dword [esi + 8]
mov dword [ebp - 0x190], ecx
mov ecx, esi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x18c], edx
call fcn.10050e70
lea ecx, [ebp - 0x198]
call fcn.1004e5f0
mov ebx, dword [ebp - 0x13c]
jmp case.default.0x1004d689
movss xmm0, dword [edi + 0x7c]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
movss dword [ebp - 0x13c], xmm0
call fcn.1004e2e0
movss xmm1, dword [ebp - 0x13c]
lea ecx, [ebp - 0x158]
xorps xmm0, xmm0
mov byte [ebp - 0x158], 0
mov esi, eax
movq qword [ebp - 0x150], xmm0
call fcn.100571c0
mov al, byte [ebp - 0x158]
mov edi, dword [ebp - 0x150]
cmp al, 1
jne 0x1004d790
test edi, edi
jne 0x1004d7c9
push 0x79a
push str.C:UsersDonersDesktop_skeet_macy_mainjson.h
push str.m_type___value_t::object_or_m_value.object___nullptr
jmp 0x1004d7c0
cmp al, 2
jne 0x1004d7a9
test edi, edi
jne 0x1004d7c9
push 0x79b
push str.C:UsersDonersDesktop_skeet_macy_mainjson.h
push str.m_type___value_t::array_or_m_value.array___nullptr
jmp 0x1004d7c0
cmp al, 3
jne 0x1004d7c9
test edi, edi
jne 0x1004d7c9
push 0x79c
push str.C:UsersDonersDesktop_skeet_macy_mainjson.h
push str.m_type___value_t::string_or_m_value.string___nullptr
call dword [sym.imp.ucrtbased.dll__wassert]
add esp, 0xc
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 6
push eax
mov ecx, esi
call fcn.1004e2e0
lea ecx, [ebp - 0x158]
mov esi, eax
call fcn.10050e70
mov cl, byte [esi]
mov al, byte [ebp - 0x158]
mov byte [esi], al
mov edx, dword [esi + 0xc]
mov eax, dword [ebp - 0x14c]
mov byte [ebp - 0x158], cl
mov ecx, dword [esi + 8]
mov dword [ebp - 0x150], ecx
mov ecx, esi
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [ebp - 0x14c], edx
call fcn.10050e70
lea ecx, [ebp - 0x158]
jmp 0x1004dc63
mov eax, dword [edi + 0x78]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1004e2e0
mov esi, eax
lea ecx, [ebp - 0x1a8]
lea eax, [ebp - 0x13c]
push eax
call fcn.10052870
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 7
push eax
mov ecx, esi
call fcn.1004e2e0
lea ecx, [ebp - 0x1a8]
mov edi, eax
call fcn.10050e70
mov dl, byte [edi]
mov cl, byte [ebp - 0x1a8]
mov byte [edi], cl
mov ecx, dword [ebp - 0x19c]
mov eax, dword [ebp - 0x1a0]
mov byte [ebp - 0x1a8], dl
mov esi, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov dword [edi + 0xc], ecx
mov ecx, edi
mov dword [edi + 8], eax
mov dword [ebp - 0x1a0], edx
mov dword [ebp - 0x19c], esi
call fcn.10050e70
lea ecx, [ebp - 0x1a8]
jmp 0x1004dc63
mov esi, dword [edi + 0xac]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
call fcn.1004e2e0
xorps xmm0, xmm0
mov dword [ebp - 0x13c], eax
mov edx, esi
mov byte [ebp - 0x168], 0
lea ecx, [ebp - 0x168]
movq qword [ebp - 0x160], xmm0
call fcn.100571f0
mov al, byte [ebp - 0x168]
mov edi, dword [ebp - 0x160]
cmp al, 1
jne 0x1004d90c
test edi, edi
jne 0x1004d945
push 0x79a
push str.C:UsersDonersDesktop_skeet_macy_mainjson.h
push str.m_type___value_t::object_or_m_value.object___nullptr
jmp 0x1004d93c
cmp al, 2
jne 0x1004d925
test edi, edi
jne 0x1004d945
push 0x79b
push str.C:UsersDonersDesktop_skeet_macy_mainjson.h
push str.m_type___value_t::array_or_m_value.array___nullptr
jmp 0x1004d93c
cmp al, 3
jne 0x1004d945
test edi, edi
jne 0x1004d945
push 0x79c
push str.C:UsersDonersDesktop_skeet_macy_mainjson.h
push str.m_type___value_t::string_or_m_value.string___nullptr
call dword [sym.imp.ucrtbased.dll__wassert]
add esp, 0xc
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x13c]
push eax
call fcn.1004e2e0
lea ecx, [ebp - 0x168]
mov esi, eax
call fcn.10050e70
mov cl, byte [esi]
mov al, byte [ebp - 0x168]
mov byte [esi], al
mov edx, dword [esi + 0xc]
mov eax, dword [ebp - 0x15c]
mov byte [ebp - 0x168], cl
mov ecx, dword [esi + 8]
mov dword [ebp - 0x160], ecx
mov ecx, esi
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [ebp - 0x15c], edx
call fcn.10050e70
lea ecx, [ebp - 0x168]
jmp 0x1004dc63
mov ecx, dword [edi + 0x98]
movzx eax, cl
mov dword [ebp - 0x6c], eax
mov eax, ecx
shr eax, 8
movzx eax, al
mov dword [ebp - 0x68], eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
shr ecx, 0x18
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.1004e2e0
xorps xmm0, xmm0
mov byte [ebp - 0x178], 0
lea edx, [ebp - 0x6c]
movq qword [ebp - 0x170], xmm0
lea ecx, [ebp - 0x178]
mov esi, eax
call fcn.10057320
mov al, byte [ebp - 0x178]
mov edi, dword [ebp - 0x170]
cmp al, 1
jne 0x1004da20
test edi, edi
jne 0x1004da59
push 0x79a
push str.C:UsersDonersDesktop_skeet_macy_mainjson.h
push str.m_type___value_t::object_or_m_value.object___nullptr
jmp 0x1004da50
cmp al, 2
jne 0x1004da39
test edi, edi
jne 0x1004da59
push 0x79b
push str.C:UsersDonersDesktop_skeet_macy_mainjson.h
push str.m_type___value_t::array_or_m_value.array___nullptr
jmp 0x1004da50
cmp al, 3
jne 0x1004da59
test edi, edi
jne 0x1004da59
push 0x79c
push str.C:UsersDonersDesktop_skeet_macy_mainjson.h
push str.m_type___value_t::string_or_m_value.string___nullptr
call dword [sym.imp.ucrtbased.dll__wassert]
add esp, 0xc
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 9
push eax
mov ecx, esi
call fcn.1004e2e0
lea ecx, [ebp - 0x178]
mov esi, eax
call fcn.10050e70
mov cl, byte [esi]
mov al, byte [ebp - 0x178]
mov byte [esi], al
mov edx, dword [esi + 0xc]
mov eax, dword [ebp - 0x16c]
mov byte [ebp - 0x178], cl
mov ecx, dword [esi + 8]
mov dword [ebp - 0x170], ecx
mov ecx, esi
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [ebp - 0x16c], edx
call fcn.10050e70
lea ecx, [ebp - 0x178]
jmp 0x1004dc63
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
call fcn.1004e2e0
lea ecx, [edi + 0xac]
mov esi, eax
push ecx
lea ecx, [ebp - 0x1d8]
call fcn.10041200
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x1d8]
xorps xmm0, xmm0
mov byte [ebp - 0x188], 0
lea ecx, [ebp - 0x188]
movq qword [ebp - 0x180], xmm0
call fcn.10057480
mov al, byte [ebp - 0x188]
mov edi, dword [ebp - 0x180]
cmp al, 1
jne 0x1004db21
test edi, edi
jne 0x1004db5a
push 0x79a
push str.C:UsersDonersDesktop_skeet_macy_mainjson.h
push str.m_type___value_t::object_or_m_value.object___nullptr
jmp 0x1004db51
cmp al, 2
jne 0x1004db3a
test edi, edi
jne 0x1004db5a
push 0x79b
push str.C:UsersDonersDesktop_skeet_macy_mainjson.h
push str.m_type___value_t::array_or_m_value.array___nullptr
jmp 0x1004db51
cmp al, 3
jne 0x1004db5a
test edi, edi
jne 0x1004db5a
push 0x79c
push str.C:UsersDonersDesktop_skeet_macy_mainjson.h
push str.m_type___value_t::string_or_m_value.string___nullptr
call dword [sym.imp.ucrtbased.dll__wassert]
add esp, 0xc
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0xb
push eax
mov ecx, esi
call fcn.1004e2e0
lea ecx, [ebp - 0x188]
mov esi, eax
call fcn.10050e70
mov cl, byte [esi]
mov al, byte [ebp - 0x188]
mov byte [esi], al
mov edx, dword [esi + 0xc]
mov eax, dword [ebp - 0x17c]
mov byte [ebp - 0x188], cl
mov ecx, dword [esi + 8]
mov dword [ebp - 0x180], ecx
mov ecx, esi
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [ebp - 0x17c], edx
call fcn.10050e70
lea ecx, [ebp - 0x188]
call fcn.1004e5f0
lea ecx, [ebp - 0x1d8]
call fcn.10026d00
jmp case.default.0x1004d689
cmp dword [edi + 0x8c], 0
jne 0x1004dbd4
or eax, 0xffffffff
jmp 0x1004dbe0
push ecx
lea ecx, [edi + 0x78]
call fcn.10049b10
add esp, 4
mov dword [ebp - 0x13c], eax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x2c]
push eax
call fcn.1004e2e0
mov esi, eax
lea ecx, [ebp - 0x1b8]
lea eax, [ebp - 0x13c]
push eax
call fcn.10052870
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0xc
push eax
mov ecx, esi
call fcn.1004e2e0
lea ecx, [ebp - 0x1b8]
mov edi, eax
call fcn.10050e70
mov dl, byte [edi]
mov cl, byte [ebp - 0x1b8]
mov byte [edi], cl
mov ecx, dword [ebp - 0x1ac]
mov eax, dword [ebp - 0x1b0]
mov byte [ebp - 0x1b8], dl
mov esi, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov dword [edi + 0xc], ecx
mov ecx, edi
mov dword [edi + 8], eax
mov dword [ebp - 0x1b0], edx
mov dword [ebp - 0x1ac], esi
call fcn.10050e70
lea ecx, [ebp - 0x1b8]
call fcn.1004e5f0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.10028230
mov eax, dword [ebp - 0x5c]
push 8
push eax
mov dword [ebp - 0x5c], 0
call fcn.100c75e0
mov eax, dword [ebp - 0x1bc]
add esp, 8
add ebx, 4
mov dword [ebp - 0x13c], ebx
cmp ebx, eax
jne 0x1004d660
mov edi, dword [ebp - 0x140]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.10028230
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.100c75e0
add esp, 8
add edi, 4
mov dword [ebp - 0x140], edi
cmp edi, dword [ebp - 0x144]
jne 0x1004d624
push ecx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x40]
call fcn.1004e3f0
mov byte [ebp - 4], 0xd
lea edx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1004dcf8
mov edx, dword [edx]
push dword [eax + 0x14]
lea ecx, [ebp - 0x2c]
call fcn.1004a960
add esp, 4
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x138]
push dword [ebp - 0x18]
cmova edx, dword [ebp - 0x28]
call fcn.100417f0
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.10028230
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.100c75e0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.10028230
mov eax, dword [ebp - 0x5c]
push 8
push eax
mov dword [ebp - 0x5c], 0
call fcn.100c75e0
add esp, 8
lea ecx, [ebp - 0x134]
call fcn.1002bc80
test eax, eax
jne 0x1004dd8b
push eax
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x138]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x138]
call fcn.1004bfd0
lea ecx, [ebp - 0x88]
call fcn.10028230
mov eax, dword [ebp - 0x88]
push 8
push eax
mov dword [ebp - 0x88], 0
call fcn.100c75e0
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.1004e5f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c6d50
mov esp, ebp
pop ebp
ret 8