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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x45e480]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x45e480]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [esp + 0x18], edi
call fcn.0040c590
xor ebx, ebx
mov ecx, edi
cmp edi, ebx
je 0x40d003
cmp dword [ecx + 8], ebx
je 0x40d152
mov ecx, dword [ecx + 4]
cmp ecx, ebx
jne 0x40cff3
mov dword [esp + 0x14], ebx
mov esi, ebx
cmp eax, ebx
je 0x40d268
mov cl, byte [eax]
cmp cl, bl
je 0x40d268
cmp cl, 0x3c
jne 0x40d268
inc eax
call fcn.0040c590
mov ecx, eax
lea eax, [edi + 0x14]
mov dword [esp + 0x1c], eax
call fcn.0040c680
mov edi, eax
cmp edi, ebx
je 0x40d256
cmp byte [edi], bl
je 0x40d256
push 0x450a30
lea ecx, [esp + 0x24]
call fcn.00402020
mov eax, dword [esp + 0x1c]
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x28]
mov dword [esp + 0xa0], ebx
call fcn.00402cc0
mov ecx, esi
push ecx
mov edx, 0x450a1c
call fcn.004020f0
mov edi, edi
cmp byte [edi], bl
je 0x40d249
mov eax, edi
call fcn.0040c590
mov esi, eax
cmp esi, ebx
je 0x40d22c
mov al, byte [esi]
cmp al, bl
je 0x40d22c
cmp al, 0x2f
je 0x40d166
cmp al, 0x3e
je 0x40d19d
mov eax, 0xf
mov dword [esp + 0x3c], vtable.TiXmlAttribute.0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov edx, dword [esp + 0x14]
mov byte [esp + 0x98], 1
push esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], edx
call fcn.0040d7f0
mov edi, eax
cmp edi, ebx
je 0x40d206
cmp byte [edi], bl
je 0x40d206
mov ebx, dword [esp + 0x64]
mov eax, 0x10
cmp dword [esp + 0x78], eax
jae 0x40d122
lea ebx, [esp + 0x64]
mov ecx, dword [esp + 0x48]
cmp dword [esp + 0x5c], eax
jae 0x40d130
lea ecx, [esp + 0x48]
mov eax, dword [esp + 0x18]
push eax
call fcn.0040b040
lea esi, [esp + 0x3c]
mov byte [esp + 0x98], 0
call fcn.0040bdc0
xor ebx, ebx
jmp 0x40d080
mov esi, dword [ecx + 8]
neg esi
sbb esi, esi
not esi
and esi, ecx
mov dword [esp + 0x14], esi
jmp 0x40d009
inc esi
cmp byte [esi], 0x3e
je 0x40d18c
mov edx, dword [esp + 0x14]
cmp edx, ebx
je 0x40d17e
mov eax, 8
call fcn.0040a8c0
lea ecx, [esp + 0x20]
call fcn.00402090
jmp 0x40d295
lea ecx, [esp + 0x20]
call fcn.00402090
lea eax, [esi + 1]
jmp 0x40d297
mov ecx, dword [esp + 0x18]
inc esi
push esi
push ecx
call fcn.0040d2c0
mov esi, eax
cmp esi, ebx
je 0x40d17e
cmp byte [esi], bl
je 0x40d17e
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
jae 0x40d1c2
lea eax, [esp + 0x24]
push ebx
mov ecx, esi
call fcn.0040c7b0
add esp, 4
test al, al
je 0x40d1e6
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0x20]
call fcn.00402090
lea eax, [esi + edi]
jmp 0x40d297
mov edx, dword [esp + 0x14]
cmp edx, ebx
je 0x40d1f8
mov eax, 9
call fcn.0040a8c0
lea ecx, [esp + 0x20]
call fcn.00402090
jmp 0x40d295
mov edx, dword [esp + 0x14]
cmp edx, ebx
je 0x40d218
mov eax, 4
call fcn.0040a8c0
lea esi, [esp + 0x3c]
call fcn.0040bdc0
lea ecx, [esp + 0x20]
call fcn.00402090
jmp 0x40d295
mov edx, dword [esp + 0x14]
cmp edx, ebx
je 0x40d23e
mov eax, 7
call fcn.0040a8c0
lea ecx, [esp + 0x20]
call fcn.00402090
jmp 0x40d295
lea ecx, [esp + 0x20]
call fcn.00402090
mov eax, edi
jmp 0x40d297
cmp esi, ebx
je 0x40d295
mov eax, 5
mov edx, esi
call fcn.0040a8c0
jmp 0x40d295
cmp esi, ebx
je 0x40d295
mov byte [esi + 0x38], 1
mov dword [esi + 0x3c], 4
mov edx, dword [str.Error_parsing_Element.]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d282
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x40]
call fcn.00402db0
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00430bbd
mov esp, ebp
pop ebp
ret 4