Function at 0x414d50
Capabilities:
Link many functions at runtime
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00412b20
test eax, eax
je 0x414de4
mov ecx, esi
call fcn.004129d0
mov edi, dword [ebp + 0xc]
mov dword [edi], 0x7fffffff
mov dword [ebp - 0x30], eax
mov eax, dword [eax + 0x170]
mov ebx, dword [eax + 4]
mov esi, 2
cmp ebx, esi
mov dword [ebp + 0xc], 1
jle 0x414dc2
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x170]
mov eax, dword [edx + esi*4]
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.00414d50
test eax, eax
jne 0x414db0
mov dword [ebp + 0xc], eax
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
cmp eax, ecx
jb 0x414dbb
mov eax, ecx
inc esi
cmp esi, ebx
mov dword [edi], eax
jl 0x414d93
cmp dword [edi], 0x7fffffff
jne 0x414dd0
mov dword [edi], 0
mov ecx, dword [ebp - 0x30]
call fcn.00412a30
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push edi
push esi
call fcn.004155b0
test eax, eax
je 0x414e08
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
test edi, edi
je 0x414e12
mov dword [edi], 0
mov ecx, esi
call fcn.004129d0
test eax, eax
mov dword [ebp - 0x30], eax
jne 0x414e32
xor ecx, ecx
call fcn.00412a30
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, str._signature_
mov edx, edi
test edx, edx
mov dword [ebp - 0x20], 0
mov ebx, 0x7fed7fed
mov esi, 0xeeeeeeee
je 0x414e90
mov al, byte [edi]
test al, al
je 0x414e90
movsx eax, al
push eax
inc edi
call dword [sym.imp.MSVCRT.dll_toupper]
and eax, 0xff
add esp, 4
cmp eax, 0x2f
jne 0x414e71
mov eax, 0x5c
mov edx, dword [0x45eaec]
lea ecx, [esi + ebx]
mov ebx, dword [edx + eax*4]
xor ebx, ecx
mov ecx, esi
shl ecx, 5
add eax, ecx
add esi, eax
test edi, edi
lea esi, [esi + ebx + 3]
jne 0x414e4e
mov edi, str._signature_
mov edx, edi
test edx, edx
mov dword [ebp + 8], 0x7fed7fed
mov esi, 0xeeeeeeee
je 0x414ef3
mov al, byte [edi]
test al, al
je 0x414ef3
movsx eax, al
push eax
inc edi
call dword [sym.imp.MSVCRT.dll_toupper]
and eax, 0xff
add esp, 4
cmp eax, 0x2f
jne 0x414eca
mov eax, 0x5c
mov ecx, dword [ebp + 8]
lea edx, [esi + ecx]
mov ecx, dword [0x45eaec]
mov ecx, dword [ecx + eax*4 + 0x400]
xor ecx, edx
mov edx, esi
shl edx, 5
add eax, edx
add esi, eax
test edi, edi
mov dword [ebp + 8], ecx
lea esi, [esi + ecx + 3]
jne 0x414ea7
mov edx, 2
mov ecx, str._signature_
call fcn.00415520
mov esi, dword [ebp - 0x30]
mov ecx, dword [esi + 0x164]
mov dword [ebp - 0x1c], eax
lea eax, [ecx - 1]
mov ecx, eax
and ecx, ebx
mov ebx, dword [esi + 0x294]
mov edx, ecx
shl edx, 4
add edx, ebx
or edi, 0xffffffff
cmp dword [edx + 0xc], 0xffffffff
mov dword [ebp - 0x18], ecx
je 0x414f85
mov esi, dword [edx]
cmp esi, dword [ebp + 8]
jne 0x414f5f
mov esi, dword [ebp - 0x1c]
cmp dword [edx + 4], esi
jne 0x414f5f
cmp dword [edx + 0xc], 0xfffffffe
je 0x414f5f
mov si, word [edx + 8]
test si, si
jne 0x414f5f
cmp byte [edx + 0xa], 0
je 0x414f7b
test si, si
jne 0x414f5f
cmp byte [edx + 0xa], 0
jne 0x414f5f
mov edi, ecx
mov edx, dword [ebp - 0x18]
inc ecx
and ecx, eax
cmp ecx, edx
je 0x414f7d
mov edx, ecx
shl edx, 4
mov esi, dword [edx + ebx + 0xc]
add edx, ebx
cmp esi, 0xffffffff
jne 0x414f2e
jmp 0x414f7d
mov edi, ecx
cmp edi, 0xffffffff
jne 0x414fae
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x414f92
mov dword [eax], 1
push 0x4dc
call fcn.00412210
mov ecx, esi
call fcn.00412a30
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
xor esi, esi
push str.advapi32.dll
mov dword [ebp + 8], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x415476
push esi
push 0xe9f
push str.E:ProjectsLegacyStormSourceSFile.cpp
push 0x24
call fcn.0040ff20
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov eax, dword [ebp - 4]
push str.CryptAcquireContextA
push eax
mov dword [ebp + 8], edi
call esi
test eax, eax
mov dword [edi], eax
je 0x415476
mov ecx, dword [ebp - 4]
push str.CryptCreateHash
push ecx
call esi
test eax, eax
mov edx, edi
mov dword [edx + 4], eax
je 0x415476
mov eax, dword [ebp - 4]
push str.CryptDestroyHash
push eax
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 8], eax
je 0x415476
mov edx, dword [ebp - 4]
push str.CryptDestroyKey
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0xc], eax
je 0x415476
mov edx, dword [ebp - 4]
push str.CryptHashData
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0x10], eax
je 0x415476
mov edx, dword [ebp - 4]
push str.CryptImportKey
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0x14], eax
je 0x415476
mov edx, dword [ebp - 4]
push str.CryptReleaseContext
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0x18], eax
je 0x415476
mov edx, dword [ebp - 4]
push str.CryptSignHashA
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0x1c], eax
je 0x415476
mov edx, dword [ebp - 4]
push str.CryptVerifySignatureA
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0x20], eax
je 0x415476
push 0
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.Blizzard_Storm
lea edx, [ebp - 0x10]
push edx
mov esi, edi
call dword [esi]
test eax, eax
jne 0x415100
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.Blizzard_Storm
lea eax, [ebp - 0x10]
push eax
call dword [esi]
test eax, eax
je 0x415476
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx + 0x140]
mov edx, dword [ecx]
push 0
push 0
push 0
push 0x8000002
push 0
call dword [edx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x415476
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x415476
mov ebx, str._signature_
mov ecx, ebx
test ecx, ecx
mov esi, 0x7fed7fed
mov edi, 0xeeeeeeee
je 0x41519e
mov al, byte [ebx]
test al, al
je 0x41519e
movsx eax, al
push eax
inc ebx
call dword [sym.imp.MSVCRT.dll_toupper]
and eax, 0xff
add esp, 4
cmp eax, 0x2f
jne 0x41517f
mov eax, 0x5c
mov ecx, dword [0x45eaec]
lea edx, [edi + esi]
mov esi, dword [ecx + eax*4]
xor esi, edx
mov edx, edi
shl edx, 5
add eax, edx
add edi, eax
test ebx, ebx
lea edi, [edi + esi + 3]
jne 0x41515c
mov ebx, str._signature_
mov eax, ebx
test eax, eax
mov dword [ebp - 0x18], 0x7fed7fed
mov edi, 0xeeeeeeee
je 0x415201
mov al, byte [ebx]
test al, al
je 0x415201
movsx eax, al
push eax
inc ebx
call dword [sym.imp.MSVCRT.dll_toupper]
and eax, 0xff
add esp, 4
cmp eax, 0x2f
jne 0x4151d8
mov eax, 0x5c
mov ecx, dword [ebp - 0x18]
lea edx, [edi + ecx]
mov ecx, dword [0x45eaec]
mov ecx, dword [ecx + eax*4 + 0x400]
xor ecx, edx
mov edx, edi
shl edx, 5
add eax, edx
add edi, eax
test ebx, ebx
mov dword [ebp - 0x18], ecx
lea edi, [edi + ecx + 3]
jne 0x4151b5
mov edx, 2
mov ecx, str._signature_
call fcn.00415520
mov edi, dword [ebp - 0x30]
mov ecx, dword [edi + 0x164]
mov edi, dword [edi + 0x294]
lea edx, [ecx - 1]
and esi, edx
mov ecx, esi
shl ecx, 4
mov ebx, dword [ecx + edi + 0xc]
add ecx, edi
mov dword [ebp - 0x24], eax
or eax, 0xffffffff
cmp ebx, eax
mov dword [ebp - 0x28], esi
je 0x415476
mov ebx, dword [ebp - 0x18]
cmp dword [ecx], ebx
jne 0x415271
mov ebx, dword [ebp - 0x24]
cmp dword [ecx + 4], ebx
jne 0x415271
cmp dword [ecx + 0xc], 0xfffffffe
je 0x415271
mov bx, word [ecx + 8]
test bx, bx
jne 0x415271
cmp byte [ecx + 0xa], bl
je 0x41528d
test bx, bx
jne 0x415271
mov bl, byte [ecx + 0xa]
test bl, bl
jne 0x415271
mov eax, esi
mov ecx, dword [ebp - 0x28]
inc esi
and esi, edx
cmp esi, ecx
je 0x41528f
mov ecx, esi
shl ecx, 4
mov ebx, dword [ecx + edi + 0xc]
add ecx, edi
cmp ebx, 0xffffffff
jne 0x415240
jmp 0x41528f
mov eax, esi
cmp eax, 0xffffffff
je 0x415476
mov ecx, dword [ebp - 0x30]
mov edx, eax
call fcn.00415590
mov esi, eax
test dword [esi + 0xc], 0x1ff00
jne 0x415469
cmp dword [esi + 8], 8
jbe 0x415469
mov eax, dword [esi]
test eax, eax
je 0x415469
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx]
cmp eax, 1
mov dword [ebp - 0x24], eax
jb 0x4152e9
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x415476
mov dword [eax], 3
jmp 0x415476
mov eax, dword [eax*8 + 0x4397f0]
push str.256
push eax
call fcn.00418ab0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
call fcn.00418ab0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x415344
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push edi
call fcn.00418ab0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
push eax
push ebx
push edx
call dword [edi + 0x14]
jmp 0x415347
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x415479
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [edi + 4]
test eax, eax
je 0x415476
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x280]
mov ecx, dword [esi]
mov edx, dword [ebp - 0xc]
push 0
sub ecx, eax
push ecx
add eax, edx
push eax
mov eax, dword [ebp - 8]
push eax
call dword [edi + 0x10]
test eax, eax
je 0x415476
mov ecx, dword [esi + 8]
push 8
push 0xef5
push str.E:ProjectsLegacyStormSourceSFile.cpp
push ecx
call fcn.0040ff20
mov edx, dword [esi + 8]
push 0
mov ebx, eax
mov eax, dword [ebp - 8]
push edx
push ebx
push eax
call dword [edi + 0x10]
push 0
push 0xefa
push str.E:ProjectsLegacyStormSourceSFile.cpp
push ebx
mov dword [ebp - 0x28], eax
call fcn.00410070
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x415476
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x280]
mov ebx, dword [esi + 8]
mov edx, dword [esi]
mov eax, dword [eax + 0x154]
add edx, ebx
lea ebx, [eax + ecx]
cmp edx, ebx
jae 0x41541a
sub eax, dword [esi]
sub eax, dword [esi + 8]
push 0
add eax, ecx
mov ecx, dword [ebp - 0xc]
push eax
add edx, ecx
push edx
mov edx, dword [ebp - 8]
push edx
call dword [edi + 0x10]
test eax, eax
je 0x415476
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 8]
mov edx, dword [esi]
push 0
push 0
push eax
mov eax, dword [ebp - 0xc]
sub ecx, 8
push ecx
lea ecx, [edx + eax + 8]
mov edx, dword [ebp - 8]
push ecx
push edx
call dword [edi + 0x20]
test eax, eax
je 0x41545a
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [ebp - 0x20], 1
je 0x415476
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx*8 + 0x4397f4]
mov dword [eax], edx
jmp 0x415479
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x415476
mov dword [eax], 2
jmp 0x415479
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x415476
mov dword [eax], 2
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x415484
push eax
call dword [edi + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41548f
push eax
call dword [edi + 0xc]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41549d
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4154ab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4154cc
push 0
push eax
call dword [edi + 0x18]
push 0x10
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.Blizzard_Storm
lea eax, [ebp - 0x10]
push eax
call dword [edi]
test edi, edi
je 0x4154e2
push 0
push 0xf23
push str.E:ProjectsLegacyStormSourceSFile.cpp
push edi
call fcn.00410070
mov eax, dword [ebp - 4]
test eax, eax
je 0x4154f0
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x415501
push 0x4dc
call fcn.00412210
mov ecx, dword [ebp - 0x30]
call fcn.00412a30
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8