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

Disassembly:
push 0xffffffffffffffff
push 0x479f63
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49d340]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xd8]
lea eax, [esp + 0x34]
push eax
mov edi, ebx
call fcn.00413ab0
mov ecx, dword [esp + 0xdc]
mov edi, dword [esp + 0xd0]
xor ebp, ebp
mov dword [esp + 0xc4], ebp
mov edx, dword [esp + 0x3c]
mov esi, dword [edx + 4]
lea eax, [edi + 0x3c]
push ecx
lea esi, [esp + esi + 0x40]
call fcn.00413c70
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 4]
mov esi, dword [esp + eax + 0x4c]
mov ecx, esi
mov dword [esp + 0x28], esi
mov esi, dword [esp + eax + 0x54]
shr ecx, 8
and cl, 1
mov dword [esp + 0x2c], esi
je 0x4128a5
cmp esi, ebp
mov byte [esp + 0x1b], 1
jne 0x4128aa
mov byte [esp + 0x1b], 0
mov ecx, dword [esp + 0xd4]
push 0xffffffffffffffff
push ebp
call fcn.00406f60
cmp byte [esp + 0x1b], 0
jne 0x4129be
cmp esi, ebp
jle 0x4128d6
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 4]
lea eax, [esp + eax + 0x3c]
mov dword [eax + 0x18], ebp
mov eax, dword [esp + 0xcc]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00414640
mov eax, dword [ebx + 0x14]
mov ebp, dword [eax]
xor esi, esi
test byte [edi + 0x60], 2
mov dword [esp + 0x20], ebp
je 0x41294e
mov ecx, dword [ebx + 0x24]
mov eax, dword [ecx]
sub eax, ebp
test eax, 0xfffffffe
je 0x412939
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 4]
push 0x2b
lea ecx, [esp + ecx + 0x40]
call fcn.00413830
cmp word [ebp], ax
je 0x41294e
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
push 0x2d
lea ecx, [esp + ecx + 0x40]
call fcn.00413830
cmp word [ebp], ax
je 0x41294e
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 4]
push 0x20
lea ecx, [esp + ecx + 0x40]
call fcn.00413830
movzx esi, ax
mov edx, dword [ebx + 0x24]
mov eax, dword [edx]
mov ecx, dword [ebx + 0x14]
sub eax, dword [ecx]
mov ecx, dword [edi + 0x5c]
sar eax, 1
xor edx, edx
test si, si
setne dl
mov ebp, eax
mov dword [esp + 0x24], ebp
lea eax, [esp + 0x24]
sub ecx, edx
cmp ebp, ecx
mov dword [esp + 0x1c], ecx
jb 0x41297d
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 4]
mov ecx, dword [edi + 0x60]
movzx ebp, word [esp + edx + 0x6c]
mov edx, dword [esp + 0x28]
mov eax, dword [eax]
mov edi, dword [esp + 0xd4]
shr ecx, 2
and ecx, 0xffffff01
push ecx
mov ecx, dword [esp + 0x30]
push esi
push edx
mov edx, dword [esp + 0x2c]
push ebp
push ecx
push eax
push edx
call fcn.00413e00
add esp, 0x1c
jmp 0x412c9b
mov eax, dword [esp + 0xcc]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00414640
mov eax, dword [ebx + 0x14]
mov esi, dword [eax]
mov ecx, dword [ebx + 0x24]
mov eax, dword [ecx]
mov ebp, eax
sub ebp, esi
sar ebp, 1
test byte [edi + 0x60], 2
mov byte [esp + 0x1b], 0
je 0x412a2c
mov edx, dword [ebx + 0x14]
sub eax, dword [edx]
test eax, 0xfffffffe
je 0x412a27
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
push 0x2b
lea ecx, [esp + ecx + 0x40]
call fcn.00413830
cmp word [esi], ax
je 0x412a2c
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 4]
push 0x2d
lea ecx, [esp + ecx + 0x40]
call fcn.00413830
cmp word [esi], ax
je 0x412a2c
mov byte [esp + 0x1b], 1
mov eax, dword [esp + 0x2c]
cmp ebp, eax
jne 0x412a53
cmp eax, dword [edi + 0x5c]
jg 0x412a53
cmp byte [esp + 0x1b], 0
jne 0x412a53
mov ecx, dword [esp + 0xd4]
push ebp
push esi
call fcn.00405290
jmp 0x412c9b
mov ecx, dword [esp + 0xd4]
push ebp
push esi
call fcn.00405290
mov esi, ebx
call fcn.00413d90
lea edx, [esp + 0x74]
push edx
mov edi, ebx
call fcn.00413ab0
mov eax, dword [esp + 0xdc]
mov byte [esp + 0xc4], 1
mov ecx, dword [esp + 0x7c]
mov esi, dword [ecx + 4]
push eax
mov eax, dword [esp + 0xd4]
lea esi, [esp + esi + 0x80]
add eax, 0x3c
call fcn.00413c70
cmp byte [esp + 0x1b], 0
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + 4]
lea eax, [esp + eax + 0x7c]
mov dword [eax + 0x18], 0
je 0x412ac7
lea eax, [esp + 0x7c]
push eax
call fcn.00413f10
add esp, 4
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx]
push edx
lea eax, [esp + 0x80]
push eax
call fcn.00414640
mov ecx, dword [ebx + 0x24]
mov eax, dword [ecx]
mov edx, dword [ebx + 0x14]
sub eax, dword [edx]
test eax, 0xfffffffe
jne 0x412b0e
mov eax, dword [esp + 0xd0]
test byte [eax + 0x60], 2
je 0x412b0e
lea ecx, [esp + 0x7c]
push ecx
mov byte [esp + 0x1f], 1
call fcn.00413f10
add esp, 4
mov edx, dword [ebx + 0x14]
mov ecx, dword [edx]
mov eax, dword [ebx + 0x24]
mov eax, dword [eax]
mov edx, dword [esp + 0xd0]
mov edx, dword [edx + 0x5c]
sub eax, ecx
sar eax, 1
mov dword [esp + 0x20], eax
cmp eax, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x20]
jb 0x412b3e
lea eax, [esp + 0x1c]
mov edi, dword [eax]
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
ja 0x412b5d
push edi
push ecx
mov ecx, dword [esp + 0xdc]
call fcn.00405290
jmp 0x412c2c
mov al, byte [esp + 0x1b]
xor ecx, ecx
test al, al
setne cl
lea edx, [esp + 0x20]
add ebp, ecx
cmp edi, ebp
mov dword [esp + 0x1c], ebp
jb 0x412b7a
lea edx, [esp + 0x1c]
mov ebp, dword [edx]
movzx eax, al
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], eax
jae 0x412d2a
sub eax, ecx
mov dword [esp + 0x28], eax
add eax, eax
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0xd4]
mov ecx, dword [esp + 0x28]
cmp ecx, dword [ebp + 0x14]
jbe 0x412bb2
call fcn.00433461
cmp dword [ebp + 0x18], 8
jb 0x412bbd
mov eax, dword [ebp + 4]
jmp 0x412bc0
lea eax, [ebp + 4]
mov edx, dword [esp + 0x24]
mov cx, word [edx + esi*2]
mov edx, dword [esp + 0x1c]
cmp cx, word [eax + edx]
jne 0x412be5
add dword [esp + 0x28], 1
add dword [esp + 0x1c], 2
add esi, 1
cmp esi, dword [esp + 0x20]
jb 0x412b9d
mov eax, dword [esp + 0x30]
cmp esi, edi
jb 0x412bef
mov esi, eax
mov eax, dword [esp + 0x24]
push esi
push eax
mov ecx, ebp
call fcn.00405290
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 4]
movzx ecx, word [esp + edx + 0xac]
mov eax, dword [esp + 0x2c]
push ecx
sub eax, edi
push eax
mov ecx, ebp
call fcn.0040d000
mov eax, dword [esp + 0x24]
sub edi, esi
lea ecx, [eax + esi*2]
push edi
push ecx
mov ecx, ebp
call fcn.00406960
lea eax, [esp + 0x74]
neg eax
sbb eax, eax
lea edx, [esp + 0x7c]
and eax, edx
mov byte [esp + 0xc4], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [edx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov esi, dword [esp + 0x78]
test esi, esi
je 0x412c80
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x412c80
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x412c80
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
lea eax, [esp + 0x80]
push eax
mov dword [esp + 0x84], vtable.std::ios_base.0
call fcn.00431a6e
add esp, 4
mov esi, ebx
call fcn.00413d90
lea eax, [esp + 0x34]
neg eax
sbb eax, eax
lea ecx, [esp + 0x3c]
and eax, ecx
mov dword [esp + 0xc4], 0xffffffff
mov edx, dword [eax]
mov ecx, dword [edx + 4]
mov dword [ecx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x412cfb
mov esi, eax
add eax, 4
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x412cfb
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x412cfb
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x44], vtable.std::ios_base.0
call fcn.00431a6e
add esp, 4
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret
mov ebp, dword [esp + 0xd4]
jmp 0x412be9