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

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
mov eax, edi
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x9c
mov edi, dword [edi]
mov esi, dword [eax + 4]
mov eax, dword [edi + 8]
mov dword [ecx], eax
mov edx, dword [eax - 0xc]
mov ecx, dword [edi + 0xc]
mov dword [ebx + edx], ecx
mov edx, dword [esi + 4]
mov dword [ebx + 4], edx
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
add ecx, ebx
mov eax, ecx
mov ecx, dword [edx - 0xc]
add ecx, esi
mov dword [esp], ecx
mov dword [ebp - 0x60], ecx
mov ecx, eax
mov dword [ebp - 0x5c], eax
call method.std::ios_base._M_move_std::ios_base_
mov eax, dword [ebp - 0x5c]
sub esp, 4
lea ecx, [eax + 0x6c]
mov dword [esp], ecx
mov ecx, eax
call method.std::basic_ios_wchar_t__std::char_traits_wchar_t___._M_cache_locale_std::locale_const_
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
sub esp, 4
mov ecx, dword [edx + 0x70]
mov dword [edx + 0x70], 0
mov dword [eax + 0x78], 0
mov dword [eax + 0x70], ecx
movzx ecx, word [edx + 0x74]
movzx edx, byte [edx + 0x76]
mov word [eax + 0x74], cx
lea ecx, [esi + 0xc]
mov byte [eax + 0x76], dl
mov eax, dword [edi + 0x10]
mov dword [esi + 4], 0
mov edx, dword [edi + 0x14]
mov dword [ebx + 8], eax
mov eax, dword [eax - 0xc]
mov dword [ebx + eax + 8], edx
mov eax, dword [edi + 4]
mov edx, dword [edi + 0x18]
mov dword [ebx], eax
mov eax, dword [eax - 0xc]
mov dword [ebx + eax], edx
mov eax, dword [edi + 0x1c]
mov dword [ebx + 8], eax
mov eax, dword [edi]
mov edx, dword [edi + 0x20]
mov dword [ebx], eax
mov eax, dword [eax - 0xc]
mov dword [ebx + eax], edx
mov eax, dword [edi + 0x24]
mov dword [ebx + 8], eax
lea eax, [ebx + 0xc]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], ecx
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0x1c]
test edx, edx
je 0x4ba880
mov ecx, dword [ebp - 0x5c]
sub edx, ecx
mov ecx, dword [ebp - 0x5c]
sar edx, 1
mov dword [ebp - 0x70], edx
sar edx, 0x1f
mov dword [ebp - 0x6c], edx
mov edx, dword [esi + 0x14]
sub edx, ecx
mov ecx, dword [ebp - 0x5c]
sar edx, 1
mov dword [ebp - 0x80], edx
sar edx, 0x1f
mov dword [ebp - 0x7c], edx
mov edx, dword [esi + 0x18]
mov dword [ebp - 0x60], edx
sub edx, ecx
sar edx, 1
mov dword [ebp - 0x88], edx
sar edx, 0x1f
mov dword [ebp - 0x84], edx
test eax, eax
je 0x4ba830
mov edx, dword [ebp - 0x5c]
mov ecx, eax
sub ecx, edx
mov edx, ecx
sar edx, 1
mov dword [ebp - 0x78], edx
sar edx, 0x1f
mov dword [ebp - 0x74], edx
mov edx, dword [esi + 0x20]
mov ecx, edx
sub ecx, eax
sar ecx, 1
mov eax, ecx
mov dword [ebp - 0x90], ecx
mov ecx, dword [esi + 0x24]
sar eax, 0x1f
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x5c]
sub ecx, eax
mov eax, ecx
sar eax, 1
mov dword [ebp - 0x98], eax
sar eax, 0x1f
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4ba9fb
cmp eax, edx
cmovae edx, eax
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
sub eax, edx
sar eax, 1
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
mov ecx, dword [ebp - 0x64]
call fcn.0049f890
mov eax, dword [esi + 0x2c]
lea edx, [ebx + 0x38]
sub esp, 4
mov dword [ebx + 0xc], 0x534b2c
mov dword [ebx + 0x30], edx
mov ecx, dword [esi + 0x30]
mov dword [ebx + 0x2c], eax
lea eax, [esi + 0x38]
mov dword [ebp - 0x5c], eax
cmp ecx, eax
je 0x4ba908
mov edx, dword [esi + 0x38]
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x38], edx
mov ecx, dword [esi + 0x34]
mov eax, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x6c]
mov dword [ebx + 0x34], ecx
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], eax
xor eax, eax
mov edx, dword [ebx + 0x30]
mov word [esi + 0x38], ax
mov esi, dword [ebp - 0x70]
mov ecx, esi
and ecx, edi
cmp ecx, 0xffffffff
je 0x4ba7c6
lea ecx, [edx + esi*2]
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebp - 0x80]
lea ecx, [edx + ecx*2]
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebp - 0x88]
lea ecx, [edx + ecx*2]
mov dword [ebx + 0x18], ecx
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x74]
mov ecx, esi
and ecx, edi
cmp ecx, 0xffffffff
je 0x4ba7f5
lea ecx, [edx + esi*2]
mov esi, dword [ebp - 0x98]
mov dword [ebx + 0x1c], ecx
add esi, esi
add edx, esi
mov dword [ebx + 0x24], edx
mov edx, dword [ebp - 0x90]
add edx, edx
add ecx, edx
mov dword [ebx + 0x20], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x68]
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 - 0x64]
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
lea esp, [edi - 8]
pop edi
ret 8
mov dword [ebp - 0x98], 0xffffffff
mov dword [ebp - 0x94], 0xffffffff
mov dword [ebp - 0x90], 0xffffffff
mov dword [ebp - 0x8c], 0xffffffff
mov dword [ebp - 0x78], 0xffffffff
mov dword [ebp - 0x74], 0xffffffff
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x4ba735
jmp 0x4ba742
test eax, eax
je 0x4ba990
mov ecx, dword [ebp - 0x5c]
mov edx, eax
mov dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0x84], 0xffffffff
sub edx, ecx
mov dword [ebp - 0x80], 0xffffffff
sar edx, 1
mov dword [ebp - 0x7c], 0xffffffff
mov dword [ebp - 0x78], edx
sar edx, 0x1f
mov dword [ebp - 0x74], edx
mov edx, dword [esi + 0x20]
mov dword [ebp - 0x70], 0xffffffff
mov dword [ebp - 0x60], edx
sub edx, eax
mov eax, dword [esi + 0x24]
sar edx, 1
mov dword [ebp - 0x6c], 0xffffffff
mov dword [ebp - 0x90], edx
sar edx, 0x1f
mov dword [ebp - 0x8c], edx
mov edx, dword [ebp - 0x5c]
sub eax, edx
sar eax, 1
mov dword [ebp - 0x98], eax
sar eax, 0x1f
mov dword [ebp - 0x94], eax
jmp 0x4ba866
mov ecx, dword [esi + 0x34]
lea edi, [ecx + ecx + 2]
cmp edi, 4
jae 0x4ba948
test edi, edi
je 0x4ba783
movzx ecx, byte [esi + 0x38]
mov byte [ebx + 0x38], cl
test edi, 2
je 0x4ba780
mov eax, dword [ebp - 0x5c]
movzx ecx, word [eax + edi - 2]
mov word [edx + edi - 2], cx
mov ecx, dword [esi + 0x34]
jmp 0x4ba783
mov ecx, dword [esi + 0x38]
mov dword [ebx + 0x38], ecx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + edi - 4]
mov dword [edx + edi - 4], ecx
lea ecx, [ebx + 0x3c]
and ecx, 0xfffffffc
sub edx, ecx
add edi, edx
sub eax, edx
and edi, 0xfffffffc
cmp edi, 4
jb 0x4ba780
and edi, 0xfffffffc
xor edx, edx
mov dword [ebp - 0x60], edi
mov edi, eax
mov eax, dword [edi + edx]
mov dword [ecx + edx], eax
mov eax, dword [ebp - 0x60]
add edx, 4
cmp edx, eax
jb 0x4ba97b
jmp 0x4ba780
mov dword [ebp - 0x98], 0xffffffff
mov dword [ebp - 0x94], 0xffffffff
mov dword [ebp - 0x90], 0xffffffff
mov dword [ebp - 0x8c], 0xffffffff
mov dword [ebp - 0x78], 0xffffffff
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0x84], 0xffffffff
mov dword [ebp - 0x80], 0xffffffff
mov dword [ebp - 0x7c], 0xffffffff
mov dword [ebp - 0x70], 0xffffffff
mov dword [ebp - 0x6c], 0xffffffff
jmp 0x4ba742
mov dword [ebp - 0x60], edx
jmp 0x4ba866