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

Disassembly:
push 0xffffffffffffffff
push 0x5b7089
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.00468580
mov eax, dword [eax]
xor ebp, ebp
push eax
push str.CImportAuthMgr::CheckImportAuth2___s_
push str.CheckModule
push 0xf
push 0x642404
mov dword [esp + 0x2bc], ebp
call fcn.004439a0
add esp, 0x14
lea ecx, [esp + 0x28]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.00468df0
mov ecx, dword [esp + 0x2b4]
mov dword [esi + 0x5c], ebp
call fcn.0059db17
lea ebx, [esi + 0x70]
mov ecx, ebx
call fcn.0059db17
test edi, edi
mov dword [esp + 0x20], ebp
je 0x40d603
push edi
call fcn.0044fa0c
add esp, 4
test eax, eax
je 0x40d603
push edi
lea ecx, [esp + 0x28]
call fcn.0059dc03
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.004b12f0
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x2b0], 2
call fcn.004b1520
test eax, eax
jne 0x40d112
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x6c]
call fcn.004b1520
test eax, eax
je 0x40d597
lea ecx, [esp + 0x64]
call fcn.004b39b0
test eax, eax
mov dword [esp + 0x1c], eax
je 0x40d5b9
mov edx, dword [0x61cab0]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], edx
xor edi, edi
mov byte [esp + 0x2a8], 3
test eax, eax
jle 0x40d18b
lea ecx, [esp + 0x10]
call fcn.0059db17
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
lea ecx, [esp + 0x70]
call fcn.004b39c0
test eax, eax
je 0x40d170
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40d17b
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x40d147
jmp 0x40d18b
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
call fcn.0040ce80
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x20]
push edi
push str.CImportAuthMgr::CheckImportAuth2_bMultiAuth__lu_
push str.CheckModule
push 0xf
push 0x642404
call fcn.004439a0
add esp, 0x14
test edi, edi
je 0x40d4c5
mov eax, dword [0x61cab0]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x2a8], 4
push ecx
mov ecx, esi
call fcn.0040ce60
mov edx, dword [0x61cab0]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
push eax
push 0x611fa8
push ecx
mov byte [esp + 0x2b4], 5
call fcn.0059a7f7
add esp, 0xc
lea ecx, [esp + 0x50]
call fcn.0059c86f
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.0059dc03
push 0x61061c
lea ecx, [esp + 0x38]
mov byte [esp + 0x2ac], 7
call fcn.0059a922
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.0059a7f7
mov eax, dword [esp + 0x2c]
add esp, 0x10
xor edi, edi
test eax, eax
jle 0x40d363
lea ecx, [esp + 0x10]
call fcn.0059db17
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push edi
lea ecx, [esp + 0x70]
call fcn.004b39c0
test eax, eax
je 0x40d32a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d32a
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.005178c0
add esp, 8
test eax, eax
je 0x40d32a
mov eax, dword [ebx]
lea ecx, [esp + 0x64]
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.004b2590
test eax, eax
je 0x40d32a
mov ecx, dword [0x61cab0]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [ebx]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x610c70
push ecx
mov byte [esp + 0x2b8], 8
call fcn.0059a7f7
mov edx, dword [esp + 0x24]
add esp, 0x10
mov ecx, esi
push edx
call fcn.0040d610
mov ebp, eax
mov eax, dword [esp + 0x58]
push edi
push eax
lea ecx, [esp + 0x58]
call fcn.0059ca93
test ebp, ebp
jne 0x40d339
cmp dword [esi + 0x5c], 7
je 0x40d339
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a8], 7
call fcn.0059db8f
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x40d26a
jmp 0x40d363
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2b8]
call fcn.0059dcd6
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a8], 7
call fcn.0059db8f
test ebp, ebp
jne 0x40d481
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x28], edi
jle 0x40d481
lea ecx, [esp + 0x10]
call fcn.0059db17
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push edi
lea ecx, [esp + 0x70]
call fcn.004b39c0
test eax, eax
je 0x40d43a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d43a
mov ecx, dword [esp + 0x58]
lea eax, [ecx - 1]
test eax, eax
jl 0x40d3c8
mov edx, dword [esp + 0x54]
lea ecx, [edx + eax*4]
cmp dword [ecx], edi
je 0x40d449
dec eax
sub ecx, 4
test eax, eax
jge 0x40d3b8
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40d43a
mov eax, dword [ebx]
lea ecx, [esp + 0x64]
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.004b2590
test eax, eax
je 0x40d43a
mov ecx, dword [0x61cab0]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [ebx]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x610c70
push ecx
mov byte [esp + 0x2b8], 9
call fcn.0059a7f7
mov edx, dword [esp + 0x24]
add esp, 0x10
mov ecx, esi
push edx
call fcn.0040d610
mov ebp, eax
test ebp, ebp
jne 0x40d45f
cmp dword [esi + 0x5c], 7
je 0x40d45f
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a8], 7
call fcn.0059db8f
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x40d375
jmp 0x40d481
push 1
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x30], 1
call fcn.0059cb4c
jmp 0x40d43a
mov ecx, dword [esp + 0x2b4]
lea eax, [esp + 0x14]
push eax
call fcn.0059dcd6
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a8], 7
call fcn.0059db8f
lea ecx, [esp + 0x34]
mov byte [esp + 0x2a8], 6
call fcn.0059db8f
lea ecx, [esp + 0x50]
mov byte [esp + 0x2a8], 5
call fcn.0059c8a2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a8], 4
call fcn.0059db8f
lea ecx, [esp + 0x30]
mov byte [esp + 0x2a8], 3
call fcn.0059db8f
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a8], 2
call fcn.0059db8f
lea ecx, [esp + 0x64]
mov byte [esp + 0x2a8], 1
call fcn.004b1410
lea ecx, [esp + 0x24]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.0059db8f
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40d52b
mov edi, dword [esp + 0x2b0]
push edi
mov ecx, esi
call fcn.0040d610
mov ebp, eax
test ebp, ebp
jne 0x40d51e
cmp dword [esi + 0x5c], 7
jne 0x40d52b
mov ecx, dword [esp + 0x2b4]
push edi
call fcn.0059dd26
mov ecx, dword [esp + 0x2b4]
mov eax, dword [ecx]
lea ecx, [esp + 0x20]
push eax
call fcn.00468580
mov edx, dword [eax]
push ebp
push edx
push str.CImportAuthMgr::CheckImportAuth2_strMatchFile__s__ret__lu_
push str.CheckModule
push 0xf
push 0x642404
mov dword [esp + 0x2c0], 0xa
call fcn.004439a0
add esp, 0x18
lea ecx, [esp + 0x20]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.00468df0
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 0x642404
call fcn.004439a0
add esp, 0x10
mov dword [esi + 0x5c], 5
jmp 0x40d5d9
push str.CImportAuthMgr::CheckImportAuth2_no_files_
push str.CheckModule
push 0xf
push 0x642404
call fcn.004439a0
add esp, 0x10
mov dword [esi + 0x5c], 6
lea ecx, [esp + 0x64]
mov byte [esp + 0x2a8], 1
call fcn.004b1410
lea ecx, [esp + 0x24]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.0059db8f
jmp 0x40d50a
mov dword [esi + 0x5c], 2
jmp 0x40d50a