Function at 0x4122e0
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 0x412375
cmp esi, ebp
mov byte [esp + 0x1b], 1
jne 0x41237a
mov byte [esp + 0x1b], 0
mov ecx, dword [esp + 0xd4]
push 0xffffffffffffffff
push ebp
call fcn.00406f60
cmp byte [esp + 0x1b], 0
jne 0x41248f
cmp esi, ebp
jle 0x4123a6
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]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00416490
mov edx, dword [ebx + 0x14]
mov ebp, dword [edx]
add esp, 8
xor esi, esi
test byte [edi + 0x60], 2
mov dword [esp + 0x20], ebp
je 0x41241f
mov eax, dword [ebx + 0x24]
mov eax, dword [eax]
sub eax, ebp
test eax, 0xfffffffe
je 0x41240a
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 4]
push 0x2b
lea ecx, [esp + ecx + 0x40]
call fcn.00413830
cmp word [ebp], ax
je 0x41241f
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 4]
push 0x2d
lea ecx, [esp + ecx + 0x40]
call fcn.00413830
cmp word [ebp], ax
je 0x41241f
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
push 0x20
lea ecx, [esp + ecx + 0x40]
call fcn.00413830
movzx esi, ax
mov ecx, dword [ebx + 0x24]
mov eax, dword [ecx]
mov edx, dword [ebx + 0x14]
sub eax, dword [edx]
mov ecx, dword [edi + 0x5c]
sar eax, 1
mov ebp, eax
xor eax, eax
test si, si
setne al
mov dword [esp + 0x24], ebp
sub ecx, eax
cmp ebp, ecx
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x24]
jb 0x41244e
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 0x41276d
mov eax, dword [esp + 0xcc]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00416490
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx + 0x14]
mov eax, dword [eax]
mov esi, dword [edx]
mov ebp, eax
sub ebp, esi
add esp, 8
sar ebp, 1
test byte [edi + 0x60], 2
mov byte [esp + 0x1b], 0
je 0x4124fd
mov ecx, edx
sub eax, dword [ecx]
test eax, 0xfffffffe
je 0x4124f8
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 4]
push 0x2b
lea ecx, [esp + ecx + 0x40]
call fcn.00413830
cmp word [esi], ax
je 0x4124fd
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
push 0x2d
lea ecx, [esp + ecx + 0x40]
call fcn.00413830
cmp word [esi], ax
je 0x4124fd
mov byte [esp + 0x1b], 1
mov eax, dword [esp + 0x2c]
cmp ebp, eax
jne 0x412524
cmp eax, dword [edi + 0x5c]
jg 0x412524
cmp byte [esp + 0x1b], 0
jne 0x412524
mov ecx, dword [esp + 0xd4]
push ebp
push esi
call fcn.00405290
jmp 0x41276d
mov ecx, dword [esp + 0xd4]
push ebp
push esi
call fcn.00405290
mov esi, ebx
call fcn.00413d90
lea ecx, [esp + 0x74]
push ecx
mov edi, ebx
call fcn.00413ab0
mov edx, dword [esp + 0xdc]
mov byte [esp + 0xc4], 1
mov eax, dword [esp + 0x7c]
mov esi, dword [eax + 4]
mov eax, dword [esp + 0xd0]
push edx
lea esi, [esp + esi + 0x80]
add eax, 0x3c
call fcn.00413c70
cmp byte [esp + 0x1b], 0
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx + 4]
lea eax, [esp + eax + 0x7c]
mov dword [eax + 0x18], 0
je 0x412598
lea edx, [esp + 0x7c]
push edx
call fcn.00413f10
add esp, 4
mov eax, dword [esp + 0xcc]
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.00416490
mov edx, dword [ebx + 0x24]
mov eax, dword [edx]
mov ecx, dword [ebx + 0x14]
sub eax, dword [ecx]
add esp, 8
test eax, 0xfffffffe
jne 0x4125e0
mov edx, dword [esp + 0xd0]
test byte [edx + 0x60], 2
je 0x4125e0
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x1f], 1
call fcn.00413f10
add esp, 4
mov edx, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x14]
mov eax, dword [edx]
mov ecx, dword [ecx]
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 0x412610
lea eax, [esp + 0x1c]
mov edi, dword [eax]
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
ja 0x41262f
push edi
push ecx
mov ecx, dword [esp + 0xdc]
call fcn.00405290
jmp 0x4126fe
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 0x41264c
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 0x4127fc
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 0x412684
call fcn.00433461
cmp dword [ebp + 0x18], 8
jb 0x41268f
mov eax, dword [ebp + 4]
jmp 0x412692
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 0x4126b7
add dword [esp + 0x28], 1
add dword [esp + 0x1c], 2
add esi, 1
cmp esi, dword [esp + 0x20]
jb 0x41266f
mov eax, dword [esp + 0x30]
cmp esi, edi
jb 0x4126c1
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 0x412752
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x412752
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 0x412752
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 0x4127cd
mov esi, eax
add eax, 4
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x4127cd
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 0x4127cd
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 0x4126bb