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

Disassembly:
push 0xffffffffffffffff
push 0x40edd3
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41401c]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
lea eax, [esp + 0x7c]
push eax
call fcn.0040aae0
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0xd0], 0
mov eax, dword [ecx + 8]
lea edi, [esp + 0x7c]
call fcn.0040ab80
mov bl, al
test bl, bl
je 0x404a89
mov edx, edi
mov ecx, str.PluginsInstallation
lea ebx, [esp + 0x24]
lea eax, [esp + 0x18]
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], edx
call fcn.0040b770
cmp dword [esp + 0x24], 0
je 0x404a85
xor ebx, ebx
lea edi, [esp + 0x20]
lea eax, [esp + 0x24]
mov byte [esp + 0x17], 1
mov dword [esp + 0x18], 0
call fcn.0040b7b0
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x404a85
mov dword [esp + 0x28], vtable.NBString.0
jmp 0x404752
xor ebx, ebx
mov edi, dword [esi + 0x20]
add edi, 8
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4047a0
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404767
sub eax, edx
mov esi, eax
mov dword [esp + 0x2c], ebx
je 0x4047a0
lea eax, [esi + 1]
push eax
call fcn.0040d3e0
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, ebx
je 0x4047a0
push esi
push edi
mov edi, eax
push edi
mov dword [esp + 0x38], esi
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov byte [edi + esi], bl
mov dword [esp + 0x40], ebx
xor ebx, ebx
lea edi, [esp + 0x1c]
lea eax, [esp + 0x20]
mov byte [esp + 0xd0], 1
call fcn.0040b7b0
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
cmp ebx, ebp
je 0x404a3f
mov dword [esp + 0x34], vtable.NBString.0
jmp 0x4047d5
xor ebp, ebp
cmp ebx, ebp
je 0x4047f1
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
test eax, eax
je 0x4047f1
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
jmp 0x4047f3
xor eax, eax
call fcn.0040a740
mov edi, eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
cmp edi, ebp
je 0x40484a
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404810
sub eax, edx
mov esi, eax
mov dword [esp + 0x38], ebp
je 0x40484a
lea ecx, [esi + 1]
push ecx
call fcn.0040d3e0
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, ebp
je 0x40484a
push esi
push edi
mov edi, eax
push edi
mov dword [esp + 0x44], esi
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov byte [edi + esi], 0
xor ebx, ebx
lea edi, [esp + 0x44]
lea eax, [esp + 0x1c]
mov byte [esp + 0xd0], 2
mov dword [esp + 0x54], ebp
call fcn.0040b7b0
push 4
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x40487d
lea edx, [esp + 0x58]
mov dword [eax], edx
jmp 0x40487f
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov byte [esp + 0xd0], 4
mov edi, dword [esp + 0x44]
cmp edi, ebp
je 0x40497b
mov dword [esp + 0x48], vtable.NBString.0
jmp 0x4048b2
xor ebp, ebp
cmp edi, ebp
je 0x4048ce
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
test eax, eax
je 0x4048ce
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
jmp 0x4048d0
xor eax, eax
call fcn.0040a740
mov ebx, eax
xor esi, esi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], esi
cmp ebx, ebp
je 0x404922
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4048e8
sub eax, edx
mov edi, eax
mov dword [esp + 0x4c], ebp
je 0x404922
lea eax, [edi + 1]
push eax
call fcn.0040d3e0
mov esi, eax
add esp, 4
mov dword [esp + 0x50], esi
cmp esi, ebp
je 0x404922
push edi
push ebx
push esi
mov dword [esp + 0x58], edi
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov byte [esi + edi], 0
lea ecx, [esp + 0x48]
push ecx
lea edi, [esp + 0x5c]
mov byte [esp + 0xd4], 5
call fcn.004035e0
mov ebx, dword [esp + 0x54]
inc ebx
lea edi, [esp + 0x70]
lea eax, [esp + 0x1c]
mov dword [esp + 0x54], ebx
call fcn.0040b7b0
mov edi, dword [eax]
xor ebx, ebx
mov dword [esp + 0x44], edi
mov byte [esp + 0xd0], 4
cmp esi, ebx
je 0x40496f
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
cmp edi, ebx
jne 0x4048b0
mov edx, dword [esp + 0xd8]
lea ecx, [esp + 0x28]
call fcn.00404c20
lea ecx, [esp + 0x34]
mov edx, eax
call fcn.00404d50
lea edx, [esp + 0x58]
push edx
push eax
call fcn.00403470
mov esi, dword [esp + 0x40]
mov ebx, esi
lea edi, [esp + 0x78]
lea eax, [esp + 0x20]
call fcn.0040b7b0
mov ebx, dword [eax]
inc esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], esi
mov byte [esp + 0xd0], 6
mov esi, dword [esp + 0x64]
xor ebp, ebp
cmp esi, ebp
je 0x4049fd
mov edi, dword [esp + 0x68]
cmp esi, edi
je 0x4049f4
lea esp, [esp]
mov eax, dword [esi]
mov edx, dword [eax]
push ebp
mov ecx, esi
call edx
add esi, 0xc
cmp esi, edi
jne 0x4049e0
mov esi, dword [esp + 0x64]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x58]
push eax
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov byte [esp + 0xd4], 1
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, ebp
je 0x404a33
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
cmp ebx, ebp
jne 0x4047d3
mov ebx, dword [esp + 0x18]
inc ebx
lea edi, [esp + 0x74]
lea eax, [esp + 0x24]
mov dword [esp + 0x18], ebx
call fcn.0040b7b0
mov esi, dword [eax]
xor ebx, ebx
mov byte [esp + 0xd0], bl
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], esi
cmp eax, ebx
je 0x404a79
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
cmp esi, ebx
jne 0x404750
mov bl, byte [esp + 0x17]
mov dword [esp + 0xd0], 0xffffffff
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x7c], vtable.TiXmlDocument.0
cmp eax, 0x414620
je 0x404ab3
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x7c]
call fcn.0040a240
mov al, bl
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret 8