Function at 0x40cb10
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5a14f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2b0]
mov esi, ecx
push edi
lea ecx, [esp + 0x2c]
call fcn.00464c50
mov eax, dword [eax]
xor ebp, ebp
push eax
push str.CImportAuthMgr::CheckImportAuth2___s_
push str.CheckModule
push 0xf
push 0x6292fc
mov dword [esp + 0x2bc], ebp
call fcn.00440080
add esp, 0x14
lea ecx, [esp + 0x28]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.004654c0
mov ecx, dword [esp + 0x2b4]
mov dword [esi + 0x5c], ebp
call fcn.0058805d
lea ebx, [esi + 0x70]
mov ecx, ebx
call fcn.0058805d
test edi, edi
mov dword [esp + 0x20], ebp
je 0x40d163
push edi
call fcn.0044c0ec
add esp, 4
test eax, eax
je 0x40d163
push edi
lea ecx, [esp + 0x28]
call fcn.00588149
xor ecx, ecx
mov dword [esp + 0x2a8], 1
mov dword [esp + 0x3a], ecx
mov word [esp + 0x38], 0x54
mov dword [esp + 0x3e], ecx
mov word [esp + 0x3a], 0x65
mov dword [esp + 0x42], ecx
mov word [esp + 0x3c], 0x63
mov dword [esp + 0x46], ecx
mov word [esp + 0x3e], 0x6c
mov dword [esp + 0x4a], ecx
mov word [esp + 0x40], 0x69
mov word [esp + 0x4e], cx
mov word [esp + 0x4e], cx
lea ecx, [esp + 0x64]
mov word [esp + 0x42], 0x6e
mov word [esp + 0x44], 0x6b
mov word [esp + 0x46], 0x32
mov word [esp + 0x48], 0x30
mov word [esp + 0x4a], 0x31
mov word [esp + 0x4c], 0x37
call fcn.0049db20
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x2b0], 2
call fcn.0049dd70
test eax, eax
jne 0x40cc72
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x6c]
call fcn.0049dd70
test eax, eax
je 0x40d0f7
lea ecx, [esp + 0x64]
call fcn.004a01d0
test eax, eax
mov dword [esp + 0x1c], eax
je 0x40d119
mov edx, dword [0x603f10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], edx
xor edi, edi
mov byte [esp + 0x2a8], 3
test eax, eax
jle 0x40cceb
lea ecx, [esp + 0x10]
call fcn.0058805d
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
lea ecx, [esp + 0x70]
call fcn.004a01e0
test eax, eax
je 0x40ccd0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40ccdb
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x40cca7
jmp 0x40cceb
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
call fcn.0040c9e0
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x20]
push edi
push str.CImportAuthMgr::CheckImportAuth2_bMultiAuth__lu_
push str.CheckModule
push 0xf
push 0x6292fc
call fcn.00440080
add esp, 0x14
test edi, edi
je 0x40d025
mov eax, dword [0x603f10]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x2a8], 4
push ecx
mov ecx, esi
call fcn.0040c9c0
mov edx, dword [0x603f10]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
push eax
push 0x5f9ea4
push ecx
mov byte [esp + 0x2b4], 5
call fcn.00584d3d
add esp, 0xc
lea ecx, [esp + 0x50]
call fcn.00586db5
lea edx, [esp + 0x98]
mov byte [esp + 0x2a8], 6
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x98]
lea ecx, [esp + 0x34]
push eax
call fcn.00588149
push 0x5f85cc
lea ecx, [esp + 0x38]
mov byte [esp + 0x2ac], 7
call fcn.00584e68
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x34]
push eax
push ecx
push str._s_temp__lu
push ebx
call fcn.00584d3d
mov eax, dword [esp + 0x2c]
add esp, 0x10
xor edi, edi
test eax, eax
jle 0x40cec3
lea ecx, [esp + 0x10]
call fcn.0058805d
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push edi
lea ecx, [esp + 0x70]
call fcn.004a01e0
test eax, eax
je 0x40ce8a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40ce8a
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.00501ca0
add esp, 8
test eax, eax
je 0x40ce8a
mov eax, dword [ebx]
lea ecx, [esp + 0x64]
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.0049edc0
test eax, eax
je 0x40ce8a
mov ecx, dword [0x603f10]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [ebx]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x5f8c58
push ecx
mov byte [esp + 0x2b8], 8
call fcn.00584d3d
mov edx, dword [esp + 0x24]
add esp, 0x10
mov ecx, esi
push edx
call fcn.0040d170
mov ebp, eax
mov eax, dword [esp + 0x58]
push edi
push eax
lea ecx, [esp + 0x58]
call fcn.00586fd9
test ebp, ebp
jne 0x40ce99
cmp dword [esi + 0x5c], 7
je 0x40ce99
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a8], 7
call fcn.005880d5
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x40cdca
jmp 0x40cec3
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2b8]
call fcn.0058821c
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a8], 7
call fcn.005880d5
test ebp, ebp
jne 0x40cfe1
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x28], edi
jle 0x40cfe1
lea ecx, [esp + 0x10]
call fcn.0058805d
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push edi
lea ecx, [esp + 0x70]
call fcn.004a01e0
test eax, eax
je 0x40cf9a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40cf9a
mov ecx, dword [esp + 0x58]
lea eax, [ecx - 1]
test eax, eax
jl 0x40cf28
mov edx, dword [esp + 0x54]
lea ecx, [edx + eax*4]
cmp dword [ecx], edi
je 0x40cfa9
dec eax
sub ecx, 4
test eax, eax
jge 0x40cf18
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40cf9a
mov eax, dword [ebx]
lea ecx, [esp + 0x64]
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.0049edc0
test eax, eax
je 0x40cf9a
mov ecx, dword [0x603f10]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [ebx]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x5f8c58
push ecx
mov byte [esp + 0x2b8], 9
call fcn.00584d3d
mov edx, dword [esp + 0x24]
add esp, 0x10
mov ecx, esi
push edx
call fcn.0040d170
mov ebp, eax
test ebp, ebp
jne 0x40cfbf
cmp dword [esi + 0x5c], 7
je 0x40cfbf
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a8], 7
call fcn.005880d5
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x40ced5
jmp 0x40cfe1
push 1
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x30], 1
call fcn.00587092
jmp 0x40cf9a
mov ecx, dword [esp + 0x2b4]
lea eax, [esp + 0x14]
push eax
call fcn.0058821c
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a8], 7
call fcn.005880d5
lea ecx, [esp + 0x34]
mov byte [esp + 0x2a8], 6
call fcn.005880d5
lea ecx, [esp + 0x50]
mov byte [esp + 0x2a8], 5
call fcn.00586de8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a8], 4
call fcn.005880d5
lea ecx, [esp + 0x30]
mov byte [esp + 0x2a8], 3
call fcn.005880d5
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a8], 2
call fcn.005880d5
lea ecx, [esp + 0x64]
mov byte [esp + 0x2a8], 1
call fcn.0049dc40
lea ecx, [esp + 0x24]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.005880d5
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40d08b
mov edi, dword [esp + 0x2b0]
push edi
mov ecx, esi
call fcn.0040d170
mov ebp, eax
test ebp, ebp
jne 0x40d07e
cmp dword [esi + 0x5c], 7
jne 0x40d08b
mov ecx, dword [esp + 0x2b4]
push edi
call fcn.0058826c
mov ecx, dword [esp + 0x2b4]
mov eax, dword [ecx]
lea ecx, [esp + 0x20]
push eax
call fcn.00464c50
mov edx, dword [eax]
push ebp
push edx
push str.CImportAuthMgr::CheckImportAuth2_strMatchFile__s__ret__lu_
push str.CheckModule
push 0xf
push 0x6292fc
mov dword [esp + 0x2c0], 0xa
call fcn.00440080
add esp, 0x18
lea ecx, [esp + 0x20]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.004654c0
mov ecx, dword [esp + 0x2a0]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x29c
ret 8
push str.CImportAuthMgr::CheckImportAuth2_Open_fail_
push str.CheckModule
push 0xf
push 0x6292fc
call fcn.00440080
add esp, 0x10
mov dword [esi + 0x5c], 5
jmp 0x40d139
push str.CImportAuthMgr::CheckImportAuth2_no_files_
push str.CheckModule
push 0xf
push 0x6292fc
call fcn.00440080
add esp, 0x10
mov dword [esi + 0x5c], 6
lea ecx, [esp + 0x64]
mov byte [esp + 0x2a8], 1
call fcn.0049dc40
lea ecx, [esp + 0x24]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.005880d5
jmp 0x40d06a
mov dword [esi + 0x5c], 2
jmp 0x40d06a