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

Disassembly:
push 0xffffffffffffffff
push 0x40ef50
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41401c]
xor eax, esp
push eax
lea eax, [esp + 0x1d8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1e8]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov ecx, dword [ebp + 0x14]
sub ecx, dword [ebp + 0x10]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x19], bl
je 0x4033b9
mov ecx, dword [esp + 0x1ec]
sub esp, 0xc
mov dword [esp + 0x38], esp
mov dword [esp + 0x28], esp
sub esp, 0xc
mov esi, esp
mov dword [esi], vtable.NBUnicodeString.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [ecx + 8]
mov dword [esp + 0x44], esp
cmp eax, ebx
je 0x4027a6
mov edx, ecx
mov edi, dword [edx + 4]
mov ebx, eax
call fcn.00408650
xor ebx, ebx
mov eax, dword [esp + 0x34]
push eax
call fcn.004092e0
lea ecx, [esp + 0xf8]
add esp, 0x10
push ecx
call fcn.00409770
add esp, 0x10
lea edx, [esp + 0xa0]
push edx
sub esp, 0xc
mov dword [esp + 0x1f0], ebx
mov esi, esp
mov dword [esi], vtable.NBUnicodeString.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x2c], esp
cmp eax, ebx
je 0x402802
mov edi, dword [esp + 0xf0]
mov ebx, eax
call fcn.00408650
xor ebx, ebx
lea eax, [esp + 0x64]
push eax
call fcn.00409050
add esp, 0x10
push eax
mov byte [esp + 0x1e8], 1
call fcn.00408c00
mov byte [esp + 0x1e0], 3
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x54], vtable.NBUnicodeString.0
cmp eax, ebx
je 0x402842
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x5c], ebx
sub esp, 0xc
mov esi, esp
mov dword [esi], vtable.NBString.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x28], esp
cmp eax, ebx
je 0x402873
mov edi, dword [esp + 0xb0]
push eax
call fcn.00407d10
mov byte [esp + 0x1ec], 4
mov ecx, dword [ebp + 0x14]
sub ecx, dword [ebp + 0x10]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402899
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0x10]
sub esp, 0xc
mov esi, esp
mov dword [esi], vtable.NBString.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], esp
cmp ecx, ebx
je 0x4028c1
mov edi, dword [eax + 4]
push ecx
call fcn.00407d10
lea edx, [esp + 0x134]
mov byte [esp + 0x1f8], 3
mov ecx, dword [ebp]
push edx
call fcn.00404ae0
mov byte [esp + 0x1e0], 5
mov ecx, dword [esp + 0x12c]
sub ecx, dword [esp + 0x128]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x403341
lea ecx, [esp + 0x13c]
push ecx
call fcn.0040aae0
mov edx, dword [esp + 0x1ec]
mov byte [esp + 0x1e0], 6
mov eax, dword [edx + 8]
lea edi, [esp + 0x13c]
call fcn.0040ab80
mov byte [esp + 0x19], al
cmp al, bl
je 0x40330b
mov eax, edi
mov dword [esp + 0x1c], eax
mov byte [esp + 0x19], bl
mov ecx, str.InstallAssist
lea ebx, [esp + 0x4c]
lea eax, [esp + 0x1c]
call fcn.0040b770
cmp dword [esp + 0x4c], 0
je 0x4032f5
push 0
mov edi, str.Platform
lea ebx, [esp + 0x40]
lea eax, [esp + 0x50]
mov byte [esp + 0x1d], 1
mov dword [esp + 0x20], 0
call fcn.0040b7f0
cmp dword [esp + 0x3c], 0
je 0x4032f5
nop
push 0
mov edi, str.Files
lea ebx, [esp + 0x2c]
lea eax, [esp + 0x40]
mov dword [esp + 0x30], 0
call fcn.0040b7f0
cmp dword [esp + 0x28], 0
je 0x4032c8
push 0
mov edi, str.Item
lea ebx, [esp + 0x3c]
lea eax, [esp + 0x2c]
mov dword [esp + 0xa0], 0
call fcn.0040b7f0
push 4
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4029ee
lea ecx, [esp + 0x78]
mov dword [eax], ecx
jmp 0x4029f0
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
push 4
mov byte [esp + 0x1e4], 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x402a27
lea edx, [esp + 0x60]
mov dword [eax], edx
jmp 0x402a29
xor eax, eax
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
mov byte [esp + 0x1e0], 0xa
cmp dword [esp + 0x38], ebx
je 0x4030f3
mov dword [esp + 0x40], vtable.NBString.0
mov esi, dword [esp + 0x38]
cmp esi, ebx
je 0x402a75
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
test eax, eax
je 0x402a75
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
jmp 0x402a77
xor eax, eax
call fcn.0040a740
mov ebp, eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
cmp ebp, ebx
je 0x402ac9
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402a90
sub eax, edx
mov esi, eax
mov dword [esp + 0x44], ebx
je 0x402ac9
lea eax, [esi + 1]
push eax
call fcn.0040d3e0
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
je 0x402ac9
push esi
push ebp
push edi
mov dword [esp + 0x50], esi
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov byte [edi + esi], bl
lea ecx, [esp + 0x54]
push ecx
sub esp, 0xc
mov byte [esp + 0x1f0], 0xb
mov edx, esp
mov dword [esp + 0x34], esp
push edx
lea ebx, [esp + 0x54]
call fcn.00408350
lea eax, [esp + 0x110]
push eax
call fcn.004098b0
add esp, 0x10
push eax
mov byte [esp + 0x1e8], 0xc
call fcn.00408c00
mov byte [esp + 0x1e0], 0xe
mov eax, dword [esp + 0x108]
xor ebx, ebx
mov dword [esp + method.NBUnicodeString.virtual_0], vtable.NBUnicodeString.0
cmp eax, ebx
je 0x402b37
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x108], ebx
mov eax, dword [esp + 0x1e8]
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0x10]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x104], ebx
mov byte [esp + 0x1b], bl
mov dword [esp + 0x50], ebx
je 0x403076
mov dword [esp + 0x24], ebx
lea ecx, [ecx]
sub esp, 0xc
mov esi, esp
mov dword [esi], vtable.NBString.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov ebp, dword [esp + 0xb4]
mov dword [esp + 0x3c], esp
cmp ebp, ebx
je 0x402bc8
mov edi, dword [esp + 0xb0]
mov dword [esi + 4], ebx
cmp edi, ebx
jbe 0x402bc8
lea edx, [edi + 1]
push edx
call fcn.0040d3e0
add esp, 4
mov dword [esi + 8], eax
cmp eax, ebx
je 0x402bc8
push edi
push ebp
push eax
mov dword [esi + 4], edi
call sub.MSVCR90.dll_memcpy
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
add esp, 0xc
mov byte [eax + ecx], bl
mov esi, dword [esp + 0x1f4]
mov byte [esp + 0x1ec], 0xf
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x5c], eax
jb 0x402bf9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x30]
sub esp, 0xc
mov esi, esp
mov dword [esi], vtable.NBString.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov ebp, dword [eax + 8]
mov dword [esp + 0x4c], esp
cmp ebp, ebx
je 0x402c50
mov edi, dword [eax + 4]
mov dword [esi + 4], ebx
cmp edi, ebx
jbe 0x402c50
lea ecx, [edi + 1]
push ecx
call fcn.0040d3e0
add esp, 4
mov dword [esi + 8], eax
cmp eax, ebx
je 0x402c50
push edi
push ebp
push eax
mov dword [esi + 4], edi
call sub.MSVCR90.dll_memcpy
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
add esp, 0xc
mov byte [edx + eax], bl
mov edx, dword [esp + 0x200]
lea ecx, [esp + 0xc4]
push ecx
mov byte [esp + 0x1fc], 0xe
mov ecx, dword [edx]
call fcn.00404ae0
mov byte [esp + 0x1e0], 0x10
mov edi, dword [esp + 0xbc]
mov esi, dword [esp + 0xb8]
mov ecx, edi
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x34], ebx
je 0x402f85
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0xc4]
push ecx
cmp dword [esp + 0x38], eax
jb 0x402cc1
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0xbc]
mov edx, dword [esp + 0x34]
sub esp, 0xc
add esi, edx
mov eax, esp
mov dword [esp + 0x124], esp
push eax
mov ebx, esi
call fcn.00408350
lea ecx, [esp + 0xf8]
push ecx
call fcn.004098b0
add esp, 0x10
push eax
mov byte [esp + 0x1e8], 0x11
call fcn.00408c00
mov byte [esp + 0x1e0], 0x13
mov eax, dword [esp + 0xf0]
xor ebp, ebp
mov dword [esp + 0xe8], vtable.NBUnicodeString.0
cmp eax, ebp
je 0x402d29
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0xf0], ebp
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0xf8]
mov dword [esp + 0xf0], ebp
call fcn.00408440
mov esi, eax
mov byte [esp + 0x1e0], 0x14
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0xc4]
push eax
or ebx, 1
lea eax, [esp + 0xd4]
mov dword [esp + 0x24], ebx
call fcn.00408440
mov dword [esp + 0x1e0], 0x15
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
or ebx, 2
mov dword [esp + 0x20], ebx
cmp ecx, edx
jne 0x402e14
cmp ecx, ebp
je 0x402da4
mov esi, dword [esi + 8]
push ecx
mov ecx, dword [eax + 8]
push esi
push ecx
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x402e14
push 2
mov dword [esp + 0x94], vtable.NBString.0
mov dword [esp + 0x98], ebp
call fcn.0040d3e0
mov edi, eax
add esp, 4
mov dword [esp + 0x98], edi
cmp edi, ebp
je 0x402de4
mov dl, byte [0x4102bc]
mov byte [edi], dl
mov dword [esp + 0x94], 1
mov byte [edi + 1], 0
lea eax, [esp + 0x40]
mov dword [esp + 0x1e0], 0x16
or ebx, 4
push eax
lea esi, [esp + 0x94]
mov dword [esp + 0x24], ebx
call fcn.00408050
cmp eax, dword [esp + 0x44]
jae 0x402e1b
mov byte [esp + 0x1a], 1
jmp 0x402e20
mov edi, dword [esp + 0x98]
mov byte [esp + 0x1a], 0
mov esi, vtable.NBString.0
test bl, 4
je 0x402e53
and ebx, 0xfffffffb
mov dword [esp + 0x20], ebx
mov dword [esp + 0x90], esi
cmp edi, ebp
je 0x402e4c
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ebp
test bl, 2
je 0x402e88
mov eax, dword [esp + 0xd8]
and ebx, 0xfffffffd
mov dword [esp + 0x20], ebx
mov dword [esp + 0xd0], esi
cmp eax, ebp
je 0x402e81
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0xd8], ebp
mov dword [esp + 0xd4], ebp
mov dword [esp + 0x1e0], 0x13
test bl, 1
je 0x402ec8
mov eax, dword [esp + 0xfc]
and ebx, 0xfffffffe
mov dword [esp + 0x20], ebx
mov dword [esp + 0xf4], esi
cmp eax, ebp
je 0x402ec1
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0xfc], ebp
mov dword [esp + 0xf8], ebp
cmp byte [esp + 0x1a], 0
je 0x402f1a
mov ecx, dword [esp + 0xbc]
sub ecx, dword [esp + 0xb8]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov byte [esp + 0x1b], 1
cmp dword [esp + 0x34], ecx
jb 0x402efe
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0xb8]
add eax, edx
push eax
lea edi, [esp + 0x7c]
call fcn.004035e0
mov esi, vtable.NBString.0
mov byte [esp + 0x1e0], 0x10
mov eax, dword [esp + 0xcc]
mov dword [esp + 0xc4], esi
cmp eax, ebp
je 0x402f44
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0xcc], ebp
mov edi, dword [esp + 0xbc]
mov esi, dword [esp + 0xb8]
mov ebx, dword [esp + 0x34]
add dword [esp + 0x30], 0xc
mov ecx, edi
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
mov dword [esp + 0xc8], ebp
mov dword [esp + 0x34], ebx
cmp ebx, eax
jb 0x402ca6
xor ebx, ebx
mov byte [esp + 0x1e0], 0x17
cmp esi, ebx
je 0x402fb5
cmp esi, edi
je 0x402fac
mov edx, dword [esi]
mov eax, dword [edx]
push ebx
mov ecx, esi
call eax
add esi, 0xc
cmp esi, edi
jne 0x402f95
mov esi, dword [esp + 0xb8]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [esp + 0x1e0], 0xe
mov ecx, dword [esp + 0xac]
push ecx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x1ec]
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0x10]
mov esi, dword [esp + 0x54]
add dword [esp + 0x28], 0xc
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add esp, 4
mov dword [esp + 0x50], esi
cmp esi, eax
jb 0x402b70
cmp byte [esp + 0x1b], bl
je 0x403076
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x24], edx
cmp ecx, ebx
je 0x403034
mov ebx, dword [esp + 0x74]
sub ebx, ecx
sar ebx, 2
mov eax, dword [esp + 0x70]
mov esi, eax
sub esi, ecx
sar esi, 2
cmp esi, ebx
jae 0x40304e
mov dword [eax], edx
add eax, 4
mov dword [esp + 0x70], eax
jmp 0x403076
mov esi, eax
cmp ecx, eax
jbe 0x40305a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x60]
push esi
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x140]
push edx
lea eax, [esp + 0x70]
call fcn.004037a0
mov eax, dword [esp + 0x9c]
inc eax
mov dword [esp + 0x9c], eax
push eax
mov edi, str.Item
lea ebx, [esp + 0x114]
lea eax, [esp + 0x2c]
call fcn.0040b7f0
mov esi, dword [eax]
mov eax, dword [esp + 0x5c]
xor edi, edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x54], vtable.NBString.0
cmp eax, edi
je 0x4030c0
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x5c], edi
mov byte [esp + 0x1e0], 0xa
mov eax, dword [esp + 0x48]
mov dword [esp + 0x58], edi
cmp eax, edi
je 0x4030e1
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x48], edi
xor ebx, ebx
mov dword [esp + 0x44], edi
cmp esi, edi
jne 0x402a55
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x6c]
mov ebp, dword [esp + 0x28]
sar eax, 2
xor esi, esi
cmp eax, ebx
jbe 0x40312e
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp esi, eax
jb 0x403110
call edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + esi*4]
mov edx, ebp
call fcn.0040a3d0
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x6c]
inc esi
sar eax, 2
cmp esi, eax
jb 0x403110
mov ecx, dword [esp + 0x88]
sub ecx, dword [esp + 0x84]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
xor esi, esi
add ecx, edx
je 0x403207
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor edi, edi
lea esp, [esp]
push str.Item
lea edx, [esp + 0x188]
push edx
call fcn.0040a5d0
mov byte [esp + 0x1e0], 0x18
mov ecx, dword [esp + 0x88]
sub ecx, dword [esp + 0x84]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x40319e
call ebx
mov ecx, dword [esp + 0x84]
mov ecx, dword [ecx + edi + 8]
lea edx, [esp + 0x184]
push edx
mov edx, str.name
call fcn.0040a770
lea ecx, [esp + 0x184]
mov eax, ebp
call fcn.0040a390
lea ecx, [esp + 0x184]
mov byte [esp + 0x1e0], 0xa
call fcn.0040a680
mov ecx, dword [esp + 0x88]
sub ecx, dword [esp + 0x84]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add edi, 0xc
cmp esi, eax
jb 0x403160
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
push eax
mov edi, str.Files
lea ebx, [esp + 0x110]
lea eax, [esp + 0x40]
call fcn.0040b7f0
mov ebp, dword [eax]
mov eax, dword [esp + 0x6c]
xor ebx, ebx
mov dword [esp + 0x28], ebp
cmp eax, ebx
je 0x40323f
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x60]
push ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [esp + 0x1e0], 0x19
mov esi, dword [esp + 0x84]
cmp esi, ebx
je 0x403296
mov edi, dword [esp + 0x88]
cmp esi, edi
je 0x40328d
mov edx, dword [esi]
mov eax, dword [edx]
push ebx
mov ecx, esi
call eax
add esi, 0xc
cmp esi, edi
jne 0x403276
mov esi, dword [esp + 0x84]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [esp + 0x1e0], 6
mov ecx, dword [esp + 0x78]
push ecx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp ebp, ebx
jne 0x4029b7
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
push eax
mov edi, str.Platform
lea ebx, [esp + 0x11c]
lea eax, [esp + 0x50]
call fcn.0040b7f0
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x402990
mov edx, dword [esp + 0x1ec]
mov eax, dword [edx + 8]
lea edi, [esp + 0x13c]
call fcn.0040adc0
mov byte [esp + 0x1e0], 5
mov eax, dword [esp + 0x170]
mov dword [esp + method.TiXmlDocument.virtual_0], vtable.TiXmlDocument.0
cmp eax, 0x414620
je 0x403335
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x13c]
call fcn.0040a240
lea ebx, [esp + 0x11c]
mov byte [esp + 0x1e0], 0x1a
call fcn.00401690
mov eax, dword [esp + 0x11c]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0xac]
xor esi, esi
add esp, 4
mov dword [esp + 0xa0], vtable.NBString.0
cmp eax, esi
je 0x40338d
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0xa8], esi
mov eax, dword [esp + 0xe4]
mov dword [esp + 0xa4], esi
mov dword [esp + 0xdc], vtable.NBUnicodeString.0
cmp eax, esi
je 0x4033b3
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov al, byte [esp + 0x19]
jmp 0x4033bb
mov al, bl
mov ecx, dword [esp + 0x1d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret 8