Function at 0x40e1c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x424198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call dword [0x42523c]
mov eax, dword [ebp + 8]
add eax, 0x1e
xor esi, esi
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], esi
call dword [0x4252d4]
lea ecx, [esp + 0xc]
call dword [0x42529c]
push 0x5c
lea ecx, [esp + 0x10]
call dword [0x425298]
cmp eax, 0xffffffff
mov dword [esp + 0x30], esi
jle 0x40e48d
inc eax
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
call dword [0x425250]
push str.version.dll
mov byte [esp + 0x148], 1
call dword [0x4251a8]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x28], edi
jne 0x40e284
lea ecx, [esp + 0x1c]
call dword [0x425210]
lea ecx, [esp + 0xc]
call dword [0x425210]
xor eax, eax
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x425200]
push 0x426dd4
push edi
call esi
push 0x426dc0
mov ebx, eax
push edi
mov dword [esp + 0x1c], ebx
call esi
push 0x426db0
push edi
mov dword [esp + 0x18], eax
call esi
test ebx, ebx
mov dword [esp + 0x2c], eax
je 0x40e47c
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40e47c
test eax, eax
je 0x40e47c
mov dword [esp + 0x20], 0
mov ebx, str.WAR3.EXE
xor esi, esi
jmp 0x40e2e0
push ebx
lea ecx, [esp + 0x20]
call dword [0x425294]
test eax, eax
je 0x40e30b
mov eax, dword [esp + 0x20]
inc eax
add esi, 0x7c
add ebx, 0x7c
cmp esi, 0x364
mov dword [esp + 0x20], eax
jb 0x40e2e0
jmp 0x40e47c
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0
call dword [0x42521c]
push eax
call dword [esp + 0x1c]
mov esi, eax
cmp esi, 1
jb 0x40e47c
push esi
call dword [0x42544c]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40e47c
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
push esi
push eax
lea ecx, [esp + 0x18]
call dword [0x42521c]
push eax
call dword [esp + 0x20]
test eax, eax
je 0x40e478
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x38]
push edx
push str.VarFileInfoTranslation
xor esi, esi
push ebx
mov dword [esp + 0x28], esi
call dword [esp + 0x3c]
test eax, eax
je 0x40e478
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
test dword [esp + 0x18], 0xfffffffc
jbe 0x40e43b
mov edi, dword [0x425570]
jmp 0x40e3c0
mov eax, dword [esp + 0x34]
movzx ecx, word [eax + esi*4]
test ch, ch
mov dword [esp + 0x10], ecx
jns 0x40e3e7
mov dword [esp + 0x10], 0x409
mov word [eax + esi*4 + 2], 0x4e4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
movzx eax, word [eax + esi*4 + 2]
push eax
push ecx
lea ecx, [esp + 0x40]
push str.StringFileInfo_04x_04xCompanyName
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
push ecx
push ebx
mov dword [esp + 0x24], 0
call dword [esp + 0x3c]
test eax, eax
jne 0x40e42b
mov edx, dword [esp + 0x18]
inc esi
shr edx, 2
cmp esi, edx
jb 0x40e3c0
jmp 0x40e43b
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
push ecx
call dword [0x425198]
mov esi, dword [esp + 0x20]
imul esi, esi, 0x7c
lea edx, [esi + str.Blizzard_Entertainment]
push edx
lea eax, [esp + 0x3c]
push eax
call dword [0x4253e0]
add esp, 8
test eax, eax
jne 0x40e46e
mov ecx, dword [esi + 0x42e208]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x30], 1
mov dword [edx], ecx
push ebx
call dword [0x425448]
add esp, 4
mov edi, dword [esp + 0x28]
push edi
call dword [0x4251ac]
lea ecx, [esp + 0x1c]
call dword [0x425210]
lea ecx, [esp + 0xc]
call dword [0x425210]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret