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

Disassembly:
push 0xffffffffffffffff
push 0x48fb51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xc8]
push 1
push edi
lea ecx, [esp + 0x34]
call fcn.00435000
xor esi, esi
mov dword [esp + 0xb4], esi
mov eax, dword [esp + 0xcc]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0xc0]
push eax
mov eax, dword [edx + 4]
lea edx, [esp + eax + 0x38]
lea ecx, [ebx + 0x3c]
push edx
call fcn.00434d30
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov ebp, dword [esp + eax + 0x44]
mov ecx, ebp
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + eax + 0x4c]
shr ecx, 8
and cl, 1
mov dword [esp + 0x28], ebp
je 0x436628
mov byte [esp + 0x13], 1
cmp ebp, esi
jne 0x43662d
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0xc4]
push 0xffffffffffffffff
push esi
call fcn.004091c0
cmp byte [esp + 0x13], 0
jne 0x436749
cmp ebp, esi
jle 0x436659
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
lea eax, [esp + eax + 0x34]
mov dword [eax + 0x18], esi
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.00422300
test byte [ebx + 0x60], 2
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
je 0x4366d8
mov edx, dword [edi + 0x24]
mov eax, dword [edx]
sub eax, ecx
test eax, 0xfffffffe
je 0x4366c3
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push 0x2b
lea ecx, [esp + ecx + 0x38]
call fcn.00417540
mov ecx, dword [esp + 0x18]
cmp word [ecx], ax
je 0x4366d8
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + 4]
push 0x2d
lea ecx, [esp + ecx + 0x38]
call fcn.00417540
mov ecx, dword [esp + 0x18]
cmp word [ecx], ax
je 0x4366d8
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + 4]
push 0x20
lea ecx, [esp + ecx + 0x38]
call fcn.00417540
movzx esi, ax
mov eax, dword [edi + 0x24]
mov eax, dword [eax]
mov ecx, dword [edi + 0x14]
sub eax, dword [ecx]
mov ecx, dword [ebx + 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
mov dword [esp + 0x14], ecx
cmp ebp, ecx
jb 0x436707
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
movzx ecx, word [esp + edx + 0x64]
mov edx, dword [ebx + 0x60]
mov eax, dword [eax]
shr edx, 2
and dl, 1
movzx edx, dl
push edx
mov edx, dword [esp + 0x24]
push esi
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x38]
push ecx
push eax
mov eax, dword [esp + 0xdc]
push edx
push eax
call fcn.004347c0
add esp, 0x20
jmp 0x436a09
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.00422300
mov eax, dword [edi + 0x14]
mov ebp, dword [eax]
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
mov esi, eax
sub esi, ebp
sar esi, 1
test byte [ebx + 0x60], 2
mov byte [esp + 0x13], 0
je 0x4367bc
mov edx, dword [edi + 0x14]
sub eax, dword [edx]
test eax, 0xfffffffe
je 0x4367b7
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push 0x2b
lea ecx, [esp + ecx + 0x38]
call fcn.00417540
cmp word [ebp], ax
je 0x4367bc
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 4]
push 0x2d
lea ecx, [esp + ecx + 0x38]
call fcn.00417540
cmp word [ebp], ax
je 0x4367bc
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x28]
cmp esi, eax
jne 0x4367e3
cmp eax, dword [ebx + 0x5c]
jg 0x4367e3
cmp byte [esp + 0x13], 0
jne 0x4367e3
mov ecx, dword [esp + 0xc4]
push esi
push ebp
call fcn.0040faf0
jmp 0x436a09
push esi
push ebp
mov ebp, dword [esp + 0xcc]
mov ecx, ebp
call fcn.0040faf0
mov ecx, edi
call fcn.00433750
push 1
push edi
lea ecx, [esp + 0x74]
call fcn.00435000
mov byte [esp + 0xb4], 1
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0xcc]
mov ecx, dword [eax + 4]
push edx
lea edx, [esp + ecx + 0x78]
push edx
lea ecx, [ebx + 0x3c]
call fcn.00434d30
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x74]
mov eax, dword [eax + 4]
lea eax, [esp + eax + 0x74]
mov dword [eax + 0x18], 0
je 0x436852
lea ecx, [esp + 0x74]
push 0x20
push ecx
call fcn.00422e40
add esp, 8
mov eax, dword [esp + 0xbc]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x7c]
call fcn.00422300
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
mov edx, dword [edi + 0x14]
sub eax, dword [edx]
test eax, 0xfffffffe
jne 0x436894
test byte [ebx + 0x60], 2
je 0x436894
lea eax, [esp + 0x74]
push 0x20
push eax
mov byte [esp + 0x1b], 1
call fcn.00422e40
add esp, 8
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x24]
mov ecx, dword [ecx]
mov eax, dword [edx]
mov ebx, dword [ebx + 0x5c]
sub eax, ecx
sar eax, 1
mov dword [esp + 0x20], eax
cmp eax, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x20]
jb 0x4368bd
lea eax, [esp + 0x14]
mov ebx, dword [eax]
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x28], ebx
ja 0x4368d7
push ebx
push ecx
mov ecx, ebp
call fcn.0040faf0
jmp 0x436998
mov al, byte [esp + 0x13]
xor ecx, ecx
test al, al
setne cl
lea edx, [esp + 0x20]
add esi, ecx
mov dword [esp + 0x14], esi
cmp ebx, esi
jb 0x4368f4
lea edx, [esp + 0x14]
mov edx, dword [edx]
movzx eax, al
mov esi, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
cmp esi, edx
jae 0x436955
sub eax, ecx
mov dword [esp + 0x18], eax
add eax, eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [ebp + 0x14]
jbe 0x436921
call fcn.004706a8
cmp dword [ebp + 0x18], 8
jb 0x43692c
mov eax, dword [ebp + 4]
jmp 0x43692f
lea eax, [ebp + 4]
mov edx, dword [esp + 0x24]
mov cx, word [edx + esi*2]
mov edx, dword [esp + 0x14]
cmp cx, word [eax + edx]
jne 0x436951
inc dword [esp + 0x18]
add dword [esp + 0x14], 2
inc esi
cmp esi, dword [esp + 0x20]
jb 0x436913
mov eax, dword [esp + 0x1c]
cmp esi, ebx
jb 0x43695b
mov esi, eax
mov eax, dword [esp + 0x24]
push esi
push eax
mov ecx, ebp
call fcn.0040faf0
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 4]
movzx ecx, word [esp + edx + 0xa4]
mov eax, dword [esp + 0x28]
push ecx
sub eax, ebx
push eax
mov ecx, ebp
call fcn.0040dc50
mov eax, dword [esp + 0x24]
sub ebx, esi
lea ecx, [eax + esi*2]
push ebx
push ecx
mov ecx, ebp
call fcn.00411480
mov byte [esp + 0xb4], 0
lea edx, [esp + 0x78]
mov dword [esp + 0x1c], edx
mov byte [esp + 0xb4], 2
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x74], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [esp + 0xb4], 0
lea edx, [esp + 0x6c]
mov dword [esp + 0x1c], edx
mov byte [esp + 0xb4], 0
mov ecx, edx
call fcn.00407070
lea eax, [esp + 0x78]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x78], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [esp + 0xb4], 0
mov ecx, eax
push ecx
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.0045c3d4
add esp, 4
mov ecx, edi
call fcn.00433750
or esi, 0xffffffff
mov dword [esp + 0xb4], esi
lea edx, [esp + 0x38]
mov dword [esp + 0x1c], edx
mov dword [esp + 0xb4], 6
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x34], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [esp + 0xb4], esi
lea edx, [esp + 0x2c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0xb4], esi
mov ecx, edx
call fcn.00407070
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [esp + 0xb4], esi
mov ecx, eax
push ecx
mov dword [esp + 0x3c], vtable.std::ios_base.0
call fcn.0045c3d4
mov ecx, dword [esp + 0xb0]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret