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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e3fc6
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x53132c]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push esi
push edi
mov eax, dword [0x53132c]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, edx
mov dword [esp + 0x3c], eax
xor esi, esi
mov dword [esp + 0x28], esi
mov edx, dword [edi]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [edx + 0x20]
push edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x24], 0xffffffff
call ecx
mov dword [esp + 0x20], esi
cmp dword [esp + 0x1c], esi
jle 0x414311
mov ecx, dword [esp + 0x20]
mov edx, dword [edi]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x24]
push eax
push ecx
push edi
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
cmp dword [esp + 0x40], 1
jne 0x4142fe
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c8], esi
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], esi
mov word [esp + 0xf4], cx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x413ea0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0xfc]
call fcn.004089d0
lea edx, [esp + 0xf4]
push edx
mov eax, ebx
mov byte [esp + 0x1cc], 1
call fcn.00415320
mov dword [esp + 0x30], eax
cmp eax, dword [ebx + 4]
je 0x413f09
mov edi, dword [eax + 0x20]
add eax, 0x10
cmp dword [eax + 0x14], 8
jb 0x413eeb
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x108]
lea ecx, [esp + 0xf8]
call fcn.00416b00
test eax, eax
js 0x413f09
lea eax, [esp + 0x30]
jmp 0x413f14
mov eax, dword [ebx + 4]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
mov eax, dword [eax]
cmp eax, dword [ebx + 4]
jne 0x41428e
push 0x9c40
mov ecx, 0x536e48
call fcn.0044af00
test al, al
je 0x414258
mov dword [esp + 0x54], 0x513850
mov byte [esp + 0x1c8], 2
or dword [esp + 0x28], 1
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa4], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
call fcn.004016a0
lea ecx, [esp + 0x58]
lea edx, [esp + 0x34]
mov dword [esp + 0xdc], ecx
push edx
lea ecx, [esp + 0xa8]
mov dword [esp + 0xe4], esi
call fcn.00401660
push eax
mov dword [esp + 0x1cc], 4
call fcn.00404a20
mov byte [esp + 0x1cc], 3
mov edi, dword [esp + 0x38]
add esp, 4
mov ebx, eax
cmp edi, esi
je 0x413fe7
push esi
lea ecx, [esp + 0x54]
call fcn.0044752e
mov eax, dword [edi + 4]
cmp eax, esi
jbe 0x413fc5
cmp eax, 0xffffffff
jae 0x413fc5
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x50]
not esi
call fcn.00447556
and esi, edi
je 0x413fe5
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
xor esi, esi
mov eax, dword [ebx]
mov edx, dword [eax + 0x18]
push 0x20
mov ecx, ebx
call edx
mov byte [esp + 0xe4], al
cmp dword [esp + 0xdc], esi
jne 0x41401a
mov eax, dword [esp + 0xb0]
or eax, 4
push esi
push eax
lea ecx, [esp + 0xac]
call fcn.00401560
mov dword [esp + 0x1c8], 5
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 4]
mov edi, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + ecx + 0x54], edi
lea ecx, [esp + 0x58]
call fcn.004045c0
mov ebx, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], 4
mov byte [esp + 0x1c8], 7
cmp dword [esp + 0x108], 8
mov eax, dword [esp + 0xf4]
jae 0x414079
lea eax, [esp + 0xf4]
push 3
lea edx, [esp + 0x134]
push eax
lea ecx, [esp + 0x134]
mov dword [esp + 0x134], edx
call fcn.00409340
mov byte [esp + 0x1c8], 8
mov eax, dword [esp + 0x12c]
push eax
push ecx
lea ecx, [esp + 0x5c]
push str.Unknown_element_encountered:
push ecx
call fcn.00404c20
add esp, 0xc
push eax
call fcn.00404c20
mov byte [esp + 0x1d0], 7
mov eax, dword [esp + 0x134]
lea edx, [esp + 0x138]
add esp, 8
cmp eax, edx
je 0x4140e5
push eax
call fcn.004587c5
add esp, 4
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x58]
call fcn.004031f0
push 0x14e
push str.ConfigFile.cpp
push eax
push 0x9c40
mov ecx, 0x536e48
mov byte [esp + 0x1d8], 9
call fcn.0044af10
cmp dword [esp + 0x124], 0x10
jb 0x414132
mov ecx, dword [esp + 0x110]
push ecx
call fcn.00458691
add esp, 4
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 4]
lea edx, [esp + 0xa4]
mov dword [esp + 0x30], edx
mov dword [esp + ecx + 0x54], edi
test byte [esp + 0x98], 1
lea edx, [esp + 0x58]
mov dword [esp + 0xf0], edx
mov dword [esp + 0x58], ebx
je 0x414170
mov eax, dword [esp + 0x68]
mov eax, dword [eax]
push eax
call fcn.00458691
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword [ecx], esi
mov edx, dword [esp + 0x78]
mov dword [edx], esi
mov eax, dword [esp + 0x88]
mov dword [eax], esi
mov ecx, dword [esp + 0x6c]
mov dword [ecx], esi
mov edx, dword [esp + 0x7c]
mov dword [edx], esi
mov eax, dword [esp + 0x8c]
mov dword [eax], esi
and dword [esp + 0x98], 0xfffffffe
mov dword [esp + 0x94], esi
mov dword [esp + 0x58], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov byte [esp + 0x1c8], 0xb
mov eax, dword [esp + 0x90]
mov ebx, eax
cmp eax, esi
je 0x414211
mov edi, dword [eax]
cmp edi, esi
je 0x414208
push esi
lea ecx, [esp + 0x50]
call fcn.0044752e
mov eax, dword [edi + 4]
cmp eax, esi
jbe 0x4141e6
cmp eax, 0xffffffff
jae 0x4141e6
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x4c]
not esi
call fcn.00447556
and esi, edi
je 0x414206
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
xor esi, esi
push ebx
call fcn.00458691
add esp, 4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1c8], 0xa
call fcn.00447beb
mov byte [esp + 0x1c8], 1
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xa4]
mov dword [esp + edx + 0x54], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push eax
mov dword [esp + 0xa8], vtable.std::ios_base.0
call fcn.00447a81
mov ebx, dword [esp + 0x4c]
add esp, 4
cmp dword [esp + 0x108], 8
jb 0x414272
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.00458691
add esp, 4
mov dword [esp + 0x1c8], 0xffffffff
mov eax, dword [esp + 0x18]
xor edx, edx
mov word [esp + 0xf4], dx
push eax
jmp 0x4142e2
cmp dword [eax + 0x40], esi
je 0x4142ae
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
mov edx, dword [edx + 4]
push ecx
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, eax
call edx
cmp dword [esp + 0x108], 8
jb 0x4142c8
mov eax, dword [esp + 0xf4]
push eax
call fcn.00458691
add esp, 4
mov dword [esp + 0x1c8], 0xffffffff
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov word [esp + 0xf4], cx
push edx
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x1c]
jl 0x413e31
xor eax, eax
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.004587b6
mov esp, ebp
pop ebp
ret 8