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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x7c
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 8]
mov esi, ecx
mov edx, dword [eax - 0xc]
mov dword [ebx], eax
mov ecx, dword [edi + 0xc]
mov dword [ebx + edx], ecx
mov edx, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x5c], ecx
mov dword [ebx + 4], edx
mov esi, dword [eax - 0xc]
mov eax, dword [ecx]
add esi, ebx
add ecx, dword [eax - 0xc]
mov dword [esp], ecx
mov dword [ebp - 0x68], ecx
mov ecx, esi
call method.std::ios_base._M_move_std::ios_base_
lea edx, [esi + 0x6c]
mov ecx, esi
sub esp, 4
mov dword [esp], edx
call method.std::basic_ios_wchar_t__std::char_traits_wchar_t___._M_cache_locale_std::locale_const_
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x5c]
sub esp, 4
mov edx, dword [eax + 0x70]
mov dword [eax + 0x70], 0
mov dword [esi + 0x70], edx
movzx edx, word [eax + 0x74]
movzx eax, byte [eax + 0x76]
mov dword [esi + 0x78], 0
mov word [esi + 0x74], dx
mov byte [esi + 0x76], al
mov eax, dword [edi + 0x10]
mov dword [ecx + 4], 0
mov dword [ebx + 8], eax
mov eax, dword [eax - 0xc]
mov edx, dword [edi + 0x14]
mov dword [ebx + eax + 8], edx
mov eax, dword [edi + 4]
mov dword [ebx], eax
mov eax, dword [eax - 0xc]
mov edx, dword [edi + 0x18]
mov dword [ebx + eax], edx
mov eax, dword [edi + 0x1c]
mov dword [ebx + 8], eax
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [eax - 0xc]
mov edx, dword [edi + 0x20]
mov dword [ebx + eax], edx
mov eax, dword [edi + 0x24]
lea edx, [ecx + 0xc]
mov dword [ebp - 0x6c], edx
mov dword [ebx + 8], eax
lea eax, [ebx + 0xc]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x48], 0xffffffff
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x44], 0xffffffff
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
test eax, eax
je 0x498600
sub eax, edx
mov esi, dword [ebp - 0x5c]
sar eax, 1
mov dword [ebp - 0x48], eax
sar eax, 0x1f
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x14]
sub eax, edx
sar eax, 1
mov dword [ebp - 0x40], eax
sar eax, 0x1f
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x18]
mov esi, dword [ebp - 0x5c]
mov ecx, eax
sub ecx, edx
mov esi, dword [esi + 0x1c]
sar ecx, 1
mov dword [ebp - 0x38], ecx
sar ecx, 0x1f
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x68], esi
test esi, esi
je 0x4984b0
mov esi, dword [ebp - 0x68]
sub esi, edx
sar esi, 1
mov dword [ebp - 0x30], esi
sar esi, 0x1f
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp - 0x5c]
mov esi, dword [esi + 0x20]
sub esi, dword [ebp - 0x68]
mov ecx, esi
mov esi, dword [ebp - 0x5c]
sar ecx, 1
mov dword [ebp - 0x28], ecx
sar ecx, 0x1f
mov dword [ebp - 0x24], ecx
mov ecx, dword [esi + 0x24]
mov esi, dword [ebp - 0x5c]
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x20], ecx
sar ecx, 0x1f
cmp eax, dword [esi + 0x20]
mov dword [ebp - 0x1c], ecx
cmovb eax, dword [esi + 0x20]
test eax, eax
je 0x4984be
sub eax, edx
mov edx, dword [ebp - 0x5c]
sar eax, 1
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.00481260
mov edx, dword [ebp - 0x5c]
lea ecx, [ebx + 0x38]
sub esp, 4
mov dword [ebx + 0xc], 0x4d0c6c
mov eax, dword [edx + 0x2c]
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x2c], eax
mov eax, edx
mov edx, dword [edx + 0x30]
add eax, 0x38
cmp edx, eax
je 0x498613
mov dword [ebx + 0x30], edx
mov edx, dword [ebp - 0x5c]
mov edx, dword [edx + 0x38]
mov dword [ebx + 0x38], edx
mov edi, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x48]
mov edx, dword [edi + 0x34]
mov dword [ebx + 0x34], edx
mov dword [edi + 0x30], eax
xor eax, eax
mov word [edi + 0x38], ax
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x34], 0
mov edi, dword [ebp - 0x44]
mov edx, dword [eax + 0x24]
and edi, ecx
cmp edi, 0xffffffff
je 0x498545
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
lea ecx, [edx + ecx*2]
mov dword [eax + 4], ecx
lea edi, [edx + edi*2]
lea esi, [edx + esi*2]
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
and edi, ecx
cmp edi, 0xffffffff
je 0x4985c2
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x64], edi
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x68], esi
mov esi, dword [ebp - 0x68]
lea edi, [edx + edi*2]
lea edx, [edx + ecx*2]
mov ecx, 0x7fffffff
mov dword [eax + 0x18], edi
mov edi, dword [ebp - 0x64]
cmp ecx, esi
mov ecx, 0
mov dword [eax + 0x14], edx
sbb ecx, edi
mov dword [eax + 0x10], edx
jge 0x4985b8
lea ecx, [edx - 2]
mov edx, dword [ebp - 0x5c]
mov dword [ebp + 0xc], edx
nop
add dword [ebp - 0x68], 0x80000001
mov edi, 0x7fffffff
mov edx, ecx
adc dword [ebp - 0x64], 0xffffffff
sub ecx, 2
cmp edi, dword [ebp - 0x68]
mov edi, 0
sbb edi, dword [ebp - 0x64]
jl 0x498590
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x5c], edi
mov ecx, dword [ebp - 0x68]
add ecx, ecx
add edx, ecx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x6c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov dword [esp], eax
call method.std::__cxx11::basic_stringbuf_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___._M_sync_wchar_t__unsigned_int__unsigned_int_
mov eax, dword [ebx]
mov edi, dword [ebp - 0x60]
sub esp, 0xc
mov eax, dword [eax - 0xc]
mov dword [ebx + eax + 0x78], edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov ecx, dword [ecx + 0x1c]
mov dword [ebp - 0x68], ecx
test ecx, ecx
jne 0x49846d
jmp 0x4984be
mov edi, dword [ebp - 0x5c]
mov edx, dword [edi + 0x38]
mov dword [ebx + 0x38], edx
mov edx, dword [eax + 4]
mov dword [ebx + 0x3c], edx
mov edx, dword [eax + 8]
mov dword [ebx + 0x40], edx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x44], edx
jmp 0x498501