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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x583bd1
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x3c]
push eax
call fcn.0040d110
mov dword [esp + 0xc8], 0
push 0x630248
push ecx
push str._:_Name
push ecx
push edi
push ecx
lea ecx, [esp + 0x54]
push str.Node__
push ecx
lea esi, [edi + 0x20]
lea ebx, [edi + 0x3c]
call fcn.00412950
add esp, 0xc
push eax
call fcn.0040bff0
add esp, 4
push eax
call fcn.00412950
push eax
mov ecx, esi
call fcn.00412b30
add esp, 0x10
push eax
call fcn.00412950
push eax
mov ecx, ebx
call fcn.00412b30
add esp, 0xc
cmp dword [edi + 0x98], 0
jne 0x405070
push str._ParentNULL
lea edx, [esp + 0x40]
push edx
jmp 0x4050b4
mov eax, dword [edi + 0x98]
push 0x630298
push ecx
push 0x630244
push ecx
push eax
push ecx
lea esi, [eax + 0x20]
lea eax, [esp + 0x54]
push 0x63029c
push eax
call fcn.00412950
add esp, 0xc
push eax
call fcn.0040bff0
add esp, 4
push eax
call fcn.00412950
push eax
mov ecx, esi
call fcn.00412b30
add esp, 0x10
push eax
call fcn.00412950
mov eax, dword [edi + 0x70]
mov ebx, dword [eax]
mov esi, dword [edi + 0x58]
add esp, 8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
lea esp, [esp]
mov ebp, dword [edi + 0x70]
mov eax, dword [edi + 0x58]
test esi, esi
je 0x4050de
cmp esi, eax
je 0x4050e3
call fcn.004fe843
cmp ebx, ebp
je 0x405161
test esi, esi
jne 0x40515d
call fcn.004fe843
cmp ebx, dword [esi + 0x18]
jne 0x4050fa
call fcn.004fe843
mov ecx, dword [ebx + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 0x6302b0
push ecx
call eax
push 0x6302b4
push ecx
lea ecx, [esp + 0x4c]
push 0x6302b8
push ecx
mov esi, eax
call fcn.00412950
push eax
lea ecx, [edi + 0x20]
call fcn.00412b30
add esp, 0x10
push eax
call fcn.00412950
push eax
mov ecx, esi
call fcn.00412b30
add esp, 0x10
push eax
call fcn.00412950
add esp, 8
lea esi, [esp + 0x18]
call fcn.0041e8b0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x4050d0
mov esi, dword [esi]
jmp 0x4050f0
mov eax, dword [edi + 0x90]
mov ebx, dword [eax]
mov esi, dword [edi + 0x78]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
mov ebp, dword [edi + 0x90]
mov eax, dword [edi + 0x78]
test esi, esi
je 0x405185
cmp esi, eax
je 0x40518a
call fcn.004fe843
cmp ebx, ebp
je 0x4051ed
test esi, esi
jne 0x4051e9
call fcn.004fe843
cmp ebx, dword [esi + 0x18]
jne 0x4051a1
call fcn.004fe843
mov ecx, dword [ebx + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 0x6302b0
push ecx
call eax
lea ecx, [esp + 0x44]
push 0x6302c0
push ecx
mov esi, eax
call fcn.00412950
push eax
mov ecx, esi
call fcn.00412b30
add esp, 0x10
push eax
call fcn.00412950
add esp, 8
lea esi, [esp + 0x18]
call fcn.0041e8b0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x405174
mov esi, dword [esi]
jmp 0x405197
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0040d210
mov byte [esp + 0xc8], 1
lea esi, [edi + 4]
or edi, 0xffffffff
push edi
push 0
mov ecx, esi
call fcn.0040e380
mov byte [esp + 0xc8], 0
cmp dword [esp + 0x38], 8
jb 0x405230
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004fdb3f
add esp, 4
xor edx, edx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], dx
mov dword [esp + 0xc8], edi
lea ecx, [esp + 0x88]
call fcn.0040d1a0
lea eax, [esp + 0x88]
mov dword [esp + 0x18], eax
mov dword [esp + 0x88], vtable.std::basic_ios_unsigned_short_int__struct_std::char_traits_unsigned_short_int__.0
mov dword [esp + 0xc8], edi
mov ecx, eax
push ecx
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.004fd147
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret