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

Disassembly:
push ebp
mov ecx, 0x4c2764
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x50], eax
mov eax, dword [0x50f0e8]
mov dword [ebp - 0x1c], eax
xor eax, eax
call method.std::locale::id._M_id___const
mov edx, eax
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + 4]
mov esi, dword [eax + edx*4]
test esi, esi
je 0x466962
mov eax, dword [ebp + 0x20]
lea eax, [eax*8 + 0x1b]
shr eax, 4
shl eax, 4
call fcn.0040c780
sub esp, eax
lea ecx, [ebp + 8]
lea eax, [esp + 0x13]
and eax, 0xfffffff0
mov dword [ebp - 0x34], eax
lea eax, [ebp + 0x10]
mov dword [esp], eax
call method.std::istreambuf_iterator_wchar_t__std::char_traits_wchar_t___.equal_std::istreambuf_iterator_wchar_t__std::char_traits_wchar_t____const__const
sub esp, 4
test al, al
je 0x466802
movzx eax, word [ebp + 0xc]
mov dword [ebp - 0x30], 0
xor ebx, ebx
xor edi, edi
mov esi, dword [ebp + 8]
mov word [ebp - 0x3c], ax
cmp word [ebp + 0x14], 0xffff
sete byte [ebp - 0x49]
nop
cmp word [ebp - 0x3c], 0xffff
sete dl
test esi, esi
je 0x466614
test dl, dl
jne 0x466700
mov esi, edx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x466627
cmp byte [ebp - 0x49], 0
jne 0x466740
movzx eax, byte [ebp - 0x49]
mov ecx, esi
cmp cl, al
je 0x46676a
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x466644
test dl, dl
jne 0x4667a8
test ebx, ebx
je 0x466780
mov eax, dword [ebp - 0x30]
xor esi, esi
mov dword [ebp - 0x2c], edi
xor edx, edx
mov dword [ebp - 0x40], esi
add eax, eax
mov dword [ebp - 0x44], eax
jmp 0x46666b
add dword [ebp - 0x40], 1
add edx, 1
cmp edx, ebx
jae 0x4666bb
mov edi, dword [ebp - 0x2c]
lea eax, [edx*4]
mov esi, dword [ebp - 0x30]
lea ecx, [edi + eax]
cmp esi, dword [ecx]
jae 0x466660
mov esi, dword [ebp - 0x34]
lea edi, [eax + esi]
mov eax, dword [ebp - 0x48]
mov esi, dword [edi]
mov dword [ebp - 0x38], edi
movzx edi, word [ebp - 0x3c]
mov eax, dword [eax + esi*4]
mov esi, dword [ebp - 0x44]
cmp word [eax + esi], di
je 0x466730
mov esi, dword [ebp - 0x34]
sub ebx, 1
mov edi, dword [ebp - 0x38]
mov eax, dword [esi + ebx*4]
mov dword [edi], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + ebx*4]
mov dword [ecx], eax
cmp edx, ebx
jb 0x46666b
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x2c]
cmp ebx, esi
je 0x46676a
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jae 0x4667d8
add eax, 2
mov dword [esi + 8], eax
mov eax, 0xffffffff
mov edx, 0xffffffff
add dword [ebp - 0x30], 1
mov word [ebp + 0xc], ax
mov word [ebp - 0x3c], dx
jmp 0x466600
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jae 0x466936
movzx eax, word [eax]
cmp ax, 0xffff
je 0x466888
cmp ax, 0xffff
sete al
mov esi, eax
jmp 0x466616
add edx, 1
jmp 0x466667
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jae 0x466917
movzx eax, word [eax]
cmp ax, 0xffff
je 0x466894
cmp ax, 0xffff
mov ecx, esi
sete al
cmp cl, al
jne 0x466635
cmp ebx, 1
je 0x4667e4
cmp ebx, 2
jne 0x466780
mov eax, dword [ebp - 0x30]
cmp dword [edi], eax
je 0x4667eb
cmp dword [edi + 4], eax
je 0x4667eb
mov eax, dword [ebp - 0x50]
or dword [eax], 4
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [0x50f0e8]
jne 0x466972
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x24
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jae 0x466928
movzx eax, word [eax]
mov word [ebp - 0x3c], ax
cmp word [ebp - 0x3c], 0xffff
jne 0x466644
mov dword [ebp + 8], 0
jmp 0x466644
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
jmp 0x4666de
mov eax, dword [ebp - 0x30]
cmp dword [edi], eax
jne 0x466780
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x54]
mov eax, dword [eax]
mov edx, eax
sub edx, dword [ebp + 0x20]
cmp eax, dword [ebp + 0x20]
cmovge eax, edx
mov dword [edi], eax
jmp 0x466786
lea ecx, [ebp + 8]
call method.std::istreambuf_iterator_wchar_t__std::char_traits_wchar_t___._M_get___const
mov ebx, dword [ebp + 0x20]
mov word [ebp - 0x2c], ax
add ebx, ebx
je 0x466949
xor eax, eax
mov dword [ebp - 0x30], ebx
xor edi, edi
mov dword [ebp - 0x38], esi
mov ebx, eax
mov esi, dword [ebp - 0x48]
jmp 0x466850
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov dword [esp], ecx
mov ecx, edx
call dword [eax + 0x18]
sub esp, 4
cmp word [ebp - 0x2c], ax
je 0x46685c
mov eax, dword [ebp - 0x30]
add edi, 1
cmp edi, eax
je 0x46686f
mov eax, dword [esi + edi*4]
movzx ecx, word [eax]
cmp cx, word [ebp - 0x2c]
jne 0x466830
mov eax, dword [ebp - 0x34]
mov dword [eax + ebx*4], edi
mov eax, dword [ebp - 0x30]
add edi, 1
add ebx, 1
cmp edi, eax
jne 0x466850
mov dword [ebp - 0x30], ebx
mov esi, dword [ebp + 8]
test ebx, ebx
jne 0x4668a0
movzx eax, word [ebp + 0xc]
xor edi, edi
mov word [ebp - 0x3c], ax
jmp 0x4665f5
mov dword [ebp + 8], 0
jmp 0x466719
mov dword [ebp + 0x10], 0
jmp 0x466759
mov ecx, esi
mov ebx, 0xffffffff
call sym.std::basic_streambuf_wchar_t__std::char_traits_wchar_t___::sbumpc____clone_.isra.0_
mov eax, dword [ebp - 0x30]
mov word [ebp + 0xc], bx
lea eax, [eax*4 + 0x1b]
shr eax, 4
shl eax, 4
call fcn.0040c780
xor ebx, ebx
mov edi, dword [ebp - 0x34]
sub esp, eax
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0x48]
lea eax, [esp + 0x13]
and eax, 0xfffffff0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
nop
mov eax, dword [edi + ebx*4]
mov eax, dword [esi + eax*4]
mov dword [esp], eax
call sym._wcslen
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + ebx*4], eax
add ebx, 1
cmp dword [ebp - 0x30], ebx
jne 0x4668e0
mov ecx, 0xffffffff
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x30], 1
mov word [ebp - 0x3c], cx
jmp 0x4665f5
mov eax, dword [ecx]
mov byte [ebp - 0x2c], dl
call dword [eax + 0x24]
movzx edx, byte [ebp - 0x2c]
jmp 0x46674f
mov eax, dword [ecx]
call dword [eax + 0x24]
mov word [ebp - 0x3c], ax
jmp 0x4667bb
mov eax, dword [esi]
mov byte [ebp - 0x2c], dl
mov ecx, esi
call dword [eax + 0x24]
movzx edx, byte [ebp - 0x2c]
jmp 0x46670f
movzx eax, word [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], 0
xor edi, edi
mov word [ebp - 0x3c], ax
jmp 0x4665f5
mov eax, dword [ebp - 0x1c]
sub eax, dword [0x50f0e8]
jne 0x466972
call method.std.__throw_bad_cast__
call dbg.__stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
nop
nop