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

Disassembly:
push 0xffffffffffffffff
push 0x45b89f
mov eax, dword fs:[0]
push eax
sub esp, 0xb8c
mov eax, dword [0x4751f0]
xor eax, esp
mov dword [esp + 0xb88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4751f0]
xor eax, esp
push eax
lea eax, [esp + 0xba0]
mov dword fs:[0], eax
mov esi, dword [esp + 0xbb0]
mov eax, dword [esp + 0xbb4]
push esi
mov dword [esp + 0x1c], eax
call fcn.00417f70
add esp, 4
test eax, eax
je 0x40614b
push 0x104
xor ebx, ebx
lea ecx, [esp + 0x27c]
push ebx
push ecx
call fcn.004449b0
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
push ebx
push ebx
push 0x104
lea edx, [esp + 0x284]
push edx
push 0xffffffffffffffff
push esi
push ebx
push ebx
call edi
push 0x78
call fcn.00445318
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0xba8], ebx
cmp eax, ebx
je 0x40610e
lea ecx, [esp + 0x278]
push ecx
mov ecx, eax
call fcn.00410340
mov esi, eax
jmp 0x406110
xor esi, esi
mov dword [esp + 0xba8], 0xffffffff
cmp esi, ebx
je 0x40614b
push ebx
mov ecx, esi
call fcn.00410f20
mov ecx, esi
call fcn.0040f0d0
mov ebp, eax
cmp ebp, ebx
jne 0x406152
push str..common.cpp
push 0x2e2
push str.Line_no_d_source_s_ReadInstallXML_pRootElement_is_null._r_n
call fcn.0040c370
add esp, 0xc
xor eax, eax
jmp 0x4064b5
push 0x208
lea edx, [esp + 0x588]
push ebx
push edx
call fcn.004449b0
mov eax, dword [0x4744ac]
mov esi, 8
add esp, 0xc
cmp dword [0x4744c0], esi
jae 0x40617f
mov eax, 0x4744ac
push str.binADSafe3
push eax
lea eax, [esp + 0x58c]
push 0x45f83c
push eax
call fcn.00401040
mov eax, 0xf
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0xbb8], 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
push 0x208
lea ecx, [esp + 0x7a0]
push ebx
push ecx
mov byte [esp + 0xbc4], 3
call fcn.004449b0
push 0x104
lea edx, [esp + 0x39c]
push ebx
push edx
call fcn.004449b0
mov eax, dword [0x4744c8]
add esp, 0x28
cmp dword [0x4744dc], esi
jae 0x40620e
mov eax, 0x4744c8
push eax
lea eax, [esp + 0x790]
push 0x460248
push eax
call fcn.00401040
add esp, 0xc
push ebx
push ebx
push 0x104
lea ecx, [esp + 0x388]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x7a0]
push edx
push ebx
push ebx
call edi
push 0x208
lea eax, [esp + 0x998]
push ebx
push eax
call fcn.004449b0
push 0x104
lea ecx, [esp + 0x490]
push ebx
push ecx
call fcn.004449b0
mov eax, dword [0x474490]
add esp, 0x18
cmp dword [0x4744a4], esi
jae 0x40627c
mov eax, 0x474490
push eax
lea edx, [esp + 0x998]
push 0x460248
push edx
call fcn.00401040
add esp, 0xc
push ebx
push ebx
push 0x104
lea eax, [esp + 0x48c]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x9a8]
push ecx
push ebx
push ebx
call edi
mov ecx, ebp
call fcn.0040f0d0
mov ebp, eax
cmp ebp, ebx
je 0x406495
lea edx, [esp + 0x38]
push edx
push 0x460240
mov ecx, ebp
call fcn.00404390
test eax, eax
jne 0x406484
lea eax, [esp + 0x1c]
push eax
push 0x460238
mov ecx, ebp
call fcn.00404390
lea ecx, [esp + 0x54]
push ecx
push str.cover
mov ecx, ebp
call fcn.00404390
push 0x414
call fcn.00445318
push 0x414
mov edi, eax
push ebx
push edi
mov dword [esp + 0x24], edi
call fcn.004449b0
push 0x208
lea edx, [esp + 0x84]
push ebx
push edx
call fcn.004449b0
mov eax, dword [esp + 0x58]
add esp, 0x1c
cmp dword [esp + 0x50], 0x10
jae 0x40633c
lea eax, [esp + 0x3c]
push 0x208
lea ecx, [esp + 0x74]
push ecx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp word [esp + 0x70], 0x5c
je 0x40636d
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x588]
push eax
push 0x45f83c
jmp 0x40637f
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x588]
push edx
push 0x460224
push edi
call fcn.00401040
add esp, 0x10
push ebx
push str._INSTALLDIR_
lea ecx, [esp + 0x24]
call fcn.00401e40
mov esi, eax
cmp esi, 0xffffffff
je 0x4063bd
push 0x208
lea eax, [esp + 0x74]
push ebx
push eax
call fcn.004449b0
add esp, 0xc
lea ecx, [esp + 0x480]
push ecx
push 0xc
jmp 0x4063f0
push ebx
push str._USERDATADIR_
lea ecx, [esp + 0x24]
call fcn.00401e40
mov esi, eax
cmp esi, 0xffffffff
je 0x40641e
push 0x208
lea eax, [esp + 0x74]
push ebx
push eax
call fcn.004449b0
add esp, 0xc
lea ecx, [esp + 0x37c]
push ecx
push 0xd
push esi
lea ecx, [esp + 0x28]
call fcn.00403d40
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x406409
lea eax, [esp + 0x20]
push 0x208
lea edx, [esp + 0x74]
push edx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x70]
push eax
lea ecx, [edi + 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x40643f
lea eax, [esp + 0x58]
mov ecx, str.True
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406464
cmp dl, bl
je 0x406460
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406464
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x406444
xor eax, eax
jmp 0x406469
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, dword [esp + 0x18]
xor edx, edx
cmp eax, ebx
sete dl
lea eax, [esp + 0x14]
push eax
mov dword [edi + 0x410], edx
call fcn.00405eb0
mov ecx, ebp
call fcn.0040f100
mov ebp, eax
cmp ebp, ebx
jne 0x4062c0
lea ecx, [esp + 0x54]
call fcn.00402290
lea ecx, [esp + 0x1c]
call fcn.00402290
lea ecx, [esp + 0x38]
call fcn.00402290
mov eax, 1
mov ecx, dword [esp + 0xba0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb88]
xor ecx, esp
call fcn.00444b03
add esp, 0xb98
ret