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

Disassembly:
push 0xffffffffffffffff
push 0x428238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov eax, dword [esp + 0x8c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xa4]
mov ebx, ecx
push edi
mov dword [esp + 0x1c], ebx
call fcn.0040dc90
add esp, 4
test ebx, ebx
mov ebp, eax
mov esi, ebx
je 0x40f5b9
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
test eax, eax
jne 0x40f748
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x40f5a1
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x14]
test ebp, ebp
je 0x40f95f
cmp byte [ebp], 0
je 0x40f95f
push edi
push 1
mov eax, str.__xml
mov ecx, ebp
call fcn.0040dfc0
add esp, 8
test al, al
je 0x40f95f
mov esi, dword [esp + 0xa0]
test esi, esi
je 0x40f610
push edi
push ebp
mov edi, esi
call fcn.0040da80
mov eax, dword [esi]
mov dword [ebx + 4], eax
mov ecx, dword [esi + 4]
mov dword [ebx + 8], ecx
lea edi, [ebx + 0x2c]
xor esi, esi
mov ebx, 0x43a55c
add ebp, 5
mov dword [esp + 0x14], edi
call fcn.0040fac0
mov edi, dword [esp + 0x18]
add edi, 0x30
mov dword [esp + 0x1c], edi
call fcn.0040fac0
mov edi, dword [esp + 0x18]
add edi, 0x34
mov dword [esp + 0x18], edi
call fcn.0040fac0
xor ebx, ebx
cmp ebp, ebx
je 0x40f9a2
mov al, byte [ebp]
cmp al, bl
je 0x40f9a2
cmp al, 0x3e
je 0x40f95a
mov esi, dword [esp + 0xa4]
push esi
mov eax, ebp
call fcn.0040dc90
mov ebp, eax
push esi
push 1
mov eax, str.version
mov ecx, ebp
call fcn.0040dfc0
add esp, 0xc
test al, al
je 0x40f75c
or eax, 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov eax, 0x445a58
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], vtable.BDMTinyxml::TiXmlAttribute.0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov edx, dword [esp + 0xa0]
push esi
push edx
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0xa0], ebx
call fcn.0040f180
mov edi, dword [esp + 0x38]
add edi, 8
mov ebp, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40f6e6
sub eax, esi
mov ebx, edi
mov edi, dword [esp + 0x14]
mov esi, eax
call fcn.0040fac0
mov dword [esp + 0x94], 0xffffffff
mov eax, dword [esp + 0x38]
cmp eax, 0x445a58
je 0x40f71d
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x34]
cmp eax, 0x445a58
je 0x40f731
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x20], vtable.BDMTinyxml::TiXmlBase.0
xor ebx, ebx
cmp ebp, ebx
jne 0x40f650
jmp 0x40f9a2
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x40f5c5
push esi
push 1
mov eax, str.encoding
mov ecx, ebp
call fcn.0040dfc0
add esp, 8
test al, al
je 0x40f82a
or eax, 0xffffffff
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
mov eax, 0x445a58
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], vtable.BDMTinyxml::TiXmlAttribute.0
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0xa0]
push esi
push eax
push ebp
lea ecx, [esp + 0x50]
mov dword [esp + 0xa0], 1
call fcn.0040f180
mov edi, dword [esp + 0x5c]
add edi, 8
mov ebp, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40f7d2
sub eax, esi
mov ebx, edi
mov edi, dword [esp + 0x1c]
mov esi, eax
call fcn.0040fac0
mov dword [esp + 0x94], 0xffffffff
mov eax, dword [esp + 0x5c]
cmp eax, 0x445a58
je 0x40f809
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x58]
cmp eax, 0x445a58
je 0x40f81d
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x44], vtable.BDMTinyxml::TiXmlBase.0
jmp 0x40f739
push esi
push 1
mov eax, str.standalone
mov ecx, ebp
call fcn.0040dfc0
add esp, 8
test al, al
je 0x40f90b
or eax, 0xffffffff
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], eax
mov eax, 0x445a58
mov dword [esp + 0x74], ebx
mov dword [esp + 0x68], vtable.BDMTinyxml::TiXmlAttribute.0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], ebx
mov ecx, dword [esp + 0xa0]
push esi
push ecx
push ebp
lea ecx, [esp + 0x74]
mov dword [esp + 0xa0], 2
call fcn.0040f180
mov edi, dword [esp + 0x80]
add edi, 8
mov ebp, eax
mov eax, edi
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40f8b0
sub eax, esi
mov ebx, edi
mov edi, dword [esp + 0x18]
mov esi, eax
call fcn.0040fac0
mov dword [esp + 0x94], 0xffffffff
mov eax, dword [esp + 0x80]
cmp eax, 0x445a58
je 0x40f8ea
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x7c]
cmp eax, 0x445a58
je 0x40f8fe
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x68], vtable.BDMTinyxml::TiXmlBase.0
jmp 0x40f739
cmp ebp, ebx
je 0x40f9a2
mov al, byte [ebp]
cmp al, bl
mov byte [esp + 0x13], al
je 0x40f73b
cmp al, 0x3e
je 0x40f73b
movzx edx, al
push edx
call dword [sym.imp.MSVCR80.dll_isspace]
add esp, 4
test eax, eax
jne 0x40f73b
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x40f73b
cmp al, 0xd
je 0x40f73b
add ebp, 1
jne 0x40f913
jmp 0x40f9a2
lea eax, [ebp + 1]
jmp 0x40f9a4
test esi, esi
je 0x40f9a2
cmp byte [esi + 0x2c], 0
jne 0x40f9a2
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 0xc
mov ebx, dword [str.Error_parsing_Declaration.]
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40f980
sub eax, edx
lea edi, [esi + 0x34]
mov esi, eax
call fcn.0040fac0
mov eax, dword [esp + 0x14]
or ecx, 0xffffffff
mov dword [eax + 0x40], ecx
mov dword [eax + 0x3c], ecx
xor eax, eax
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret 0xc