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

Disassembly:
push 0xffffffffffffffff
push 0x5d1399
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.0046c430
mov eax, dword [eax]
xor ebp, ebp
push eax
push str.CImportAuthMgr::CheckImportAuth2___s_
push str.CheckModule
push 0xf
push 0x663464
mov dword [esp + 0x2bc], ebp
call fcn.00447850
add esp, 0x14
lea ecx, [esp + 0x28]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.0046cca0
mov ecx, dword [esp + 0x2b4]
mov dword [esi + 0x5c], ebp
call fcn.005b7c8b
lea ebx, [esi + 0x70]
mov ecx, ebx
call fcn.005b7c8b
test edi, edi
mov dword [esp + 0x20], ebp
je 0x40e673
push edi
call fcn.004538bc
add esp, 4
test eax, eax
je 0x40e673
push edi
lea ecx, [esp + 0x28]
call fcn.005b7d77
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.004ba840
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x2b0], 2
call fcn.004baa70
test eax, eax
jne 0x40e182
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x6c]
call fcn.004baa70
test eax, eax
je 0x40e607
lea ecx, [esp + 0x64]
call fcn.004bcf00
test eax, eax
mov dword [esp + 0x1c], eax
je 0x40e629
mov edx, dword [0x63d178]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], edx
xor edi, edi
mov byte [esp + 0x2a8], 3
test eax, eax
jle 0x40e1fb
lea ecx, [esp + 0x10]
call fcn.005b7c8b
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
lea ecx, [esp + 0x70]
call fcn.004bcf10
test eax, eax
je 0x40e1e0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40e1eb
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x40e1b7
jmp 0x40e1fb
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
call fcn.0040def0
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x20]
push edi
push str.CImportAuthMgr::CheckImportAuth2_bMultiAuth__lu_
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x14
test edi, edi
je 0x40e535
mov eax, dword [0x63d178]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x2a8], 4
push ecx
mov ecx, esi
call fcn.0040ded0
mov edx, dword [0x63d178]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
push eax
push 0x632160
push ecx
mov byte [esp + 0x2b4], 5
call fcn.005b496b
add esp, 0xc
lea ecx, [esp + 0x50]
call fcn.005b69e3
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.005b7d77
push 0x63061c
lea ecx, [esp + 0x38]
mov byte [esp + 0x2ac], 7
call fcn.005b4a96
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.005b496b
mov eax, dword [esp + 0x2c]
add esp, 0x10
xor edi, edi
test eax, eax
jle 0x40e3d3
lea ecx, [esp + 0x10]
call fcn.005b7c8b
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push edi
lea ecx, [esp + 0x70]
call fcn.004bcf10
test eax, eax
je 0x40e39a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40e39a
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.0052f570
add esp, 8
test eax, eax
je 0x40e39a
mov eax, dword [ebx]
lea ecx, [esp + 0x64]
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.004bbae0
test eax, eax
je 0x40e39a
mov ecx, dword [0x63d178]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [ebx]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x630a00
push ecx
mov byte [esp + 0x2b8], 8
call fcn.005b496b
mov edx, dword [esp + 0x24]
add esp, 0x10
mov ecx, esi
push edx
call fcn.0040e680
mov ebp, eax
mov eax, dword [esp + 0x58]
push edi
push eax
lea ecx, [esp + 0x58]
call fcn.005b6c07
test ebp, ebp
jne 0x40e3a9
cmp dword [esi + 0x5c], 7
je 0x40e3a9
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a8], 7
call fcn.005b7d03
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x40e2da
jmp 0x40e3d3
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2b8]
call fcn.005b7e4a
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a8], 7
call fcn.005b7d03
test ebp, ebp
jne 0x40e4f1
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x28], edi
jle 0x40e4f1
lea ecx, [esp + 0x10]
call fcn.005b7c8b
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push edi
lea ecx, [esp + 0x70]
call fcn.004bcf10
test eax, eax
je 0x40e4aa
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40e4aa
mov ecx, dword [esp + 0x58]
lea eax, [ecx - 1]
test eax, eax
jl 0x40e438
mov edx, dword [esp + 0x54]
lea ecx, [edx + eax*4]
cmp dword [ecx], edi
je 0x40e4b9
dec eax
sub ecx, 4
test eax, eax
jge 0x40e428
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40e4aa
mov eax, dword [ebx]
lea ecx, [esp + 0x64]
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.004bbae0
test eax, eax
je 0x40e4aa
mov ecx, dword [0x63d178]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [ebx]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x630a00
push ecx
mov byte [esp + 0x2b8], 9
call fcn.005b496b
mov edx, dword [esp + 0x24]
add esp, 0x10
mov ecx, esi
push edx
call fcn.0040e680
mov ebp, eax
test ebp, ebp
jne 0x40e4cf
cmp dword [esi + 0x5c], 7
je 0x40e4cf
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a8], 7
call fcn.005b7d03
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x40e3e5
jmp 0x40e4f1
push 1
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x30], 1
call fcn.005b6cc0
jmp 0x40e4aa
mov ecx, dword [esp + 0x2b4]
lea eax, [esp + 0x14]
push eax
call fcn.005b7e4a
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a8], 7
call fcn.005b7d03
lea ecx, [esp + 0x34]
mov byte [esp + 0x2a8], 6
call fcn.005b7d03
lea ecx, [esp + 0x50]
mov byte [esp + 0x2a8], 5
call fcn.005b6a16
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a8], 4
call fcn.005b7d03
lea ecx, [esp + 0x30]
mov byte [esp + 0x2a8], 3
call fcn.005b7d03
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a8], 2
call fcn.005b7d03
lea ecx, [esp + 0x64]
mov byte [esp + 0x2a8], 1
call fcn.004ba960
lea ecx, [esp + 0x24]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.005b7d03
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40e59b
mov edi, dword [esp + 0x2b0]
push edi
mov ecx, esi
call fcn.0040e680
mov ebp, eax
test ebp, ebp
jne 0x40e58e
cmp dword [esi + 0x5c], 7
jne 0x40e59b
mov ecx, dword [esp + 0x2b4]
push edi
call fcn.005b7e9a
mov ecx, dword [esp + 0x2b4]
mov eax, dword [ecx]
lea ecx, [esp + 0x20]
push eax
call fcn.0046c430
mov edx, dword [eax]
push ebp
push edx
push str.CImportAuthMgr::CheckImportAuth2_strMatchFile__s__ret__lu_
push str.CheckModule
push 0xf
push 0x663464
mov dword [esp + 0x2c0], 0xa
call fcn.00447850
add esp, 0x18
lea ecx, [esp + 0x20]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.0046cca0
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 0x663464
call fcn.00447850
add esp, 0x10
mov dword [esi + 0x5c], 5
jmp 0x40e649
push str.CImportAuthMgr::CheckImportAuth2_no_files_
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x10
mov dword [esi + 0x5c], 6
lea ecx, [esp + 0x64]
mov byte [esp + 0x2a8], 1
call fcn.004ba960
lea ecx, [esp + 0x24]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.005b7d03
jmp 0x40e57a
mov dword [esi + 0x5c], 2
jmp 0x40e57a