Function at 0x40e260
Capabilities:
Extract resource via kernel32 functions
Link many functions at runtime
Read file via mapping

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c]
push edi
mov edi, dword [esp + 0x44]
push 0
push 0
push 0
push 0
push edi
push esi
call fcn.0040e9f0
test eax, eax
je 0x40e291
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 8
test edi, edi
je 0x40e29b
mov dword [edi], 0
mov ecx, esi
call fcn.0040c280
test eax, eax
mov dword [esp + 0x34], eax
jne 0x40e2bd
xor ecx, ecx
call fcn.0040c2e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
mov ebx, dword [sym.imp.MSVCRT.dll_toupper]
mov dword [esp + 0x28], 0
mov edi, str._signature_
mov esi, 0x7fed7fed
mov ebp, 0xeeeeeeee
lea ebx, [ebx]
mov al, byte [edi]
test al, al
je 0x40e318
movsx eax, al
push eax
inc edi
call ebx
movzx eax, al
add esp, 4
cmp eax, 0x2f
jne 0x40e2fd
mov eax, 0x5c
mov edx, dword [0x43f5c4]
lea ecx, [esi + ebp]
imul ebp, ebp, 0x21
mov esi, dword [edx + eax*4]
xor esi, ecx
add ebp, eax
test edi, edi
lea ebp, [esi + ebp + 3]
jne 0x40e2e0
mov edx, 1
mov ecx, str._signature_
call fcn.0040e970
mov edx, 2
mov ecx, str._signature_
mov dword [esp + 0x40], eax
call fcn.0040e970
mov ebp, dword [esp + 0x34]
mov ecx, dword [ebp + 0x164]
mov edx, dword [ebp + 0x290]
lea edi, [ecx - 1]
and esi, edi
mov ecx, esi
shl ecx, 4
mov dword [esp + 0x24], eax
add ecx, edx
or eax, 0xffffffff
cmp dword [ecx + 0xc], 0xffffffff
mov ebx, esi
je 0x40e3bc
mov ebp, dword [esp + 0x40]
cmp dword [ecx], ebp
jne 0x40e398
mov ebp, dword [esp + 0x24]
cmp dword [ecx + 4], ebp
jne 0x40e398
cmp dword [ecx + 0xc], 0xfffffffe
je 0x40e398
mov bp, word [ecx + 8]
test bp, bp
jne 0x40e398
cmp byte [ecx + 0xa], 0
je 0x40e3b1
test bp, bp
jne 0x40e398
cmp byte [ecx + 0xa], 0
jne 0x40e398
mov eax, esi
inc esi
and esi, edi
cmp esi, ebx
je 0x40e3b3
mov ecx, esi
shl ecx, 4
mov ebp, dword [ecx + edx + 0xc]
add ecx, edx
cmp ebp, 0xffffffff
jne 0x40e365
jmp 0x40e3b3
mov eax, esi
cmp eax, 0xffffffff
jne 0x40e3e7
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40e3ca
mov dword [eax], 1
push 0x4dc
call fcn.0040bae0
mov ecx, ebp
call fcn.0040c2e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
xor esi, esi
push str.advapi32.dll
mov dword [esp + 0x44], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x40e8b8
push esi
push 0xd80
push str.C:SrcStormSourceSFile.cpp
push 0x24
call fcn.00408850
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
mov edi, eax
push edx
mov dword [esp + 0x48], edi
call esi
test eax, eax
mov dword [edi], eax
je 0x40e8b8
mov eax, dword [esp + 0x10]
push str.CryptCreateHash
push eax
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 4], eax
je 0x40e8b8
mov edx, dword [esp + 0x10]
push str.CryptDestroyHash
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 8], eax
je 0x40e8b8
mov edx, dword [esp + 0x10]
push str.CryptDestroyKey
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0xc], eax
je 0x40e8b8
mov edx, dword [esp + 0x10]
push str.CryptHashData
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0x10], eax
je 0x40e8b8
mov edx, dword [esp + 0x10]
push str.CryptImportKey
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0x14], eax
je 0x40e8b8
mov edx, dword [esp + 0x10]
push str.CryptReleaseContext
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0x18], eax
je 0x40e8b8
mov edx, dword [esp + 0x10]
push str.CryptSignHashA
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0x1c], eax
je 0x40e8b8
mov edx, dword [esp + 0x10]
push str.CryptVerifySignatureA
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0x20], eax
je 0x40e8b8
push 0
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.Blizzard_Storm
lea edx, [esp + 0x2c]
push edx
mov esi, edi
call dword [esi]
test eax, eax
jne 0x40e54c
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.Blizzard_Storm
lea eax, [esp + 0x2c]
push eax
call dword [esi]
test eax, eax
je 0x40e8b8
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x140]
push 0
push 0
push 0
push 0x8000002
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esp + 0x24], eax
je 0x40e8b8
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esp + 0x18], eax
je 0x40e8b8
mov ebx, dword [sym.imp.MSVCRT.dll_toupper]
mov edi, str._signature_
mov esi, 0x7fed7fed
mov ebp, 0xeeeeeeee
mov al, byte [edi]
test al, al
je 0x40e5de
movsx eax, al
push eax
inc edi
call ebx
movzx eax, al
add esp, 4
cmp eax, 0x2f
jne 0x40e5c3
mov eax, 0x5c
mov edx, dword [0x43f5c4]
lea ecx, [esi + ebp]
imul ebp, ebp, 0x21
mov esi, dword [edx + eax*4]
xor esi, ecx
add ebp, eax
test edi, edi
lea ebp, [esi + ebp + 3]
jne 0x40e5a6
mov edi, str._signature_
mov ebx, 0x7fed7fed
mov ebp, 0xeeeeeeee
lea ecx, [ecx]
mov al, byte [edi]
test al, al
je 0x40e630
movsx eax, al
push eax
inc edi
call dword [sym.imp.MSVCRT.dll_toupper]
movzx eax, al
add esp, 4
cmp eax, 0x2f
jne 0x40e611
mov eax, 0x5c
mov edx, dword [0x43f5c4]
lea ecx, [ebx + ebp]
imul ebp, ebp, 0x21
mov ebx, dword [edx + eax*4 + 0x400]
xor ebx, ecx
add ebp, eax
test edi, edi
lea ebp, [ebx + ebp + 3]
jne 0x40e5f0
mov edx, 2
mov ecx, str._signature_
call fcn.0040e970
mov edi, dword [esp + 0x34]
mov ecx, dword [edi + 0x164]
mov ebp, dword [edi + 0x290]
lea edx, [ecx - 1]
and esi, edx
mov ecx, esi
shl ecx, 4
mov edi, dword [ecx + ebp + 0xc]
add ecx, ebp
mov dword [esp + 0x2c], eax
or eax, 0xffffffff
cmp edi, 0xffffffff
mov dword [esp + 0x30], esi
je 0x40e8b8
cmp dword [ecx], ebx
jne 0x40e6a2
mov edi, dword [esp + 0x2c]
cmp dword [ecx + 4], edi
jne 0x40e6a2
cmp dword [ecx + 0xc], 0xfffffffe
je 0x40e6a2
mov di, word [ecx + 8]
test di, di
jne 0x40e6a2
cmp byte [ecx + 0xa], 0
je 0x40e6bf
test di, di
jne 0x40e6a2
cmp byte [ecx + 0xa], 0
jne 0x40e6a2
mov eax, esi
mov ecx, dword [esp + 0x30]
inc esi
and esi, edx
cmp esi, ecx
je 0x40e6c1
mov ecx, esi
shl ecx, 4
mov edi, dword [ecx + ebp + 0xc]
add ecx, ebp
cmp edi, 0xffffffff
jne 0x40e673
jmp 0x40e6c1
mov eax, esi
cmp eax, 0xffffffff
je 0x40e8b8
mov ecx, dword [esp + 0x34]
mov edx, eax
call fcn.0040e9d0
mov esi, eax
test dword [esi + 0xc], 0x1ff00
jne 0x40e8aa
cmp dword [esi + 8], 8
jbe 0x40e8aa
mov eax, dword [esi]
test eax, eax
je 0x40e8aa
mov edx, dword [esp + 0x18]
mov eax, dword [eax + edx]
cmp eax, 1
mov dword [esp + 0x30], eax
jb 0x40e71f
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40e8b8
mov dword [eax], 3
jmp 0x40e8b8
mov eax, dword [eax*8 + 0x42f6ec]
push str.256
push eax
call fcn.004138f0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
call fcn.004138f0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x40e77a
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push edi
call fcn.004138f0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x50]
push ebp
push edx
call dword [eax + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40e8b8
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [eax + 4]
test eax, eax
je 0x40e8b8
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x27c]
mov edx, dword [esi]
mov ecx, dword [esp + 0x18]
sub edx, eax
push 0
push edx
mov edx, dword [esp + 0x1c]
add eax, ecx
push eax
mov eax, dword [esp + 0x4c]
push edx
call dword [eax + 0x10]
test eax, eax
je 0x40e8b8
mov ecx, dword [esi + 8]
push 8
push 0xdd6
push str.C:SrcStormSourceSFile.cpp
push ecx
call fcn.00408850
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x40]
push 0
mov edi, eax
mov eax, dword [esp + 0x18]
push edx
push edi
push eax
call dword [ecx + 0x10]
push 0
push 0xddb
push str.C:SrcStormSourceSFile.cpp
push edi
mov ebp, eax
call fcn.004099d0
test ebp, ebp
je 0x40e8b8
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x27c]
mov eax, dword [eax + 0x154]
mov edx, dword [esi + 8]
mov edi, dword [esi]
lea ebp, [edi + edx]
lea ebx, [eax + ecx]
cmp ebp, ebx
jae 0x40e860
sub eax, edi
sub eax, edx
mov edx, dword [esp + 0x18]
push 0
add eax, ecx
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x1c]
add ebp, edx
push ebp
push eax
call dword [ecx + 0x10]
test eax, eax
je 0x40e8b8
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
push 0
push 0
push edx
mov edx, dword [esp + 0x24]
sub eax, 8
push eax
lea eax, [ecx + edx + 8]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
push eax
push ecx
call dword [edx + 0x20]
test eax, eax
mov eax, dword [esp + 0x44]
je 0x40e8ae
test eax, eax
mov dword [esp + 0x28], 1
je 0x40e8b8
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx*8 + 0x42f6f0]
mov dword [eax], edx
jmp 0x40e8b8
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40e8b8
mov dword [eax], 2
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0x40]
je 0x40e8c8
push eax
call dword [esi + 8]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40e8d4
push eax
call dword [esi + 0xc]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40e8e3
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40e8f2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40e915
push 0
push eax
call dword [esi + 0x18]
push 0x10
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.Blizzard_Storm
lea eax, [esp + 0x2c]
push eax
call dword [esi]
test esi, esi
je 0x40e92b
push 0
push 0xe04
push str.C:SrcStormSourceSFile.cpp
push esi
call fcn.004099d0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40e93a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x40e94c
push 0x4dc
call fcn.0040bae0
mov ecx, dword [esp + 0x34]
call fcn.0040c2e0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8