Function at 0x403090
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546636
mov eax, dword fs:[0]
push eax
sub esp, 0x470
push ebx
push esi
push edi
mov eax, dword [0x5aa060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, esi
call fcn.00410f1b
push 0
call fcn.004146cb
add esp, 4
call fcn.00408e83
mov eax, dword [eax + 8]
mov dword [0x5af7ac], eax
call fcn.00401de0
mov edi, eax
mov dword [0x5af7a8], edi
test edi, edi
je 0x4030fa
call fcn.00408e83
mov dword [eax + 0xc], edi
push 0x557228
mov ecx, esi
call fcn.00412108
lea eax, [esi + 0xd0]
mov ecx, esi
push eax
call fcn.00411118
cmp dword [esi + 0xfc], 0
jne 0x40318d
push 0
push 1
push 0
lea ecx, [ebp - 0x248]
call fcn.004057e0
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 0
mov ecx, eax
mov dword [esi + 0x20], eax
call fcn.00405d30
cmp eax, 1
jne 0x40314e
mov esi, eax
jmp 0x403155
cmp eax, 2
jne 0x40317b
xor esi, esi
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.00405a00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.00405a00
push str.GlobalSHMEM9B63F701_A616_4994_A99A_EB38719733A1
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test edi, edi
je 0x403201
push 0x1850
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4031f8
push 0x1850
call fcn.0052e04b
push 0x1850
push 0
push eax
mov dword [esi + 0xcc], eax
call fcn.0052e120
push 0x1850
push ebx
push dword [esi + 0xcc]
call fcn.0052f450
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
push str.GlobalEVENT9B63F701_A616_4994_A99A_EB38719733A1
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edi, eax
test edi, edi
je 0x403220
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call ebx
call fcn.00408911
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40323c
push 0x80004005
call fcn.00402cc0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov ecx, dword [esi + 0xcc]
or ebx, 0xffffffff
mov dword [ebp - 4], 1
test ecx, ecx
jne 0x4032f8
push 0x6d
call fcn.0040854c
test eax, eax
je 0x40327a
push 0x6d
push eax
lea ecx, [ebp - 0x14]
call fcn.00403580
mov edi, dword [ebp - 0x14]
call fcn.00408911
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x403296
push 0x80004005
call fcn.00402cc0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0x173e
mov byte [ebp - 4], 2
call fcn.0040854c
test eax, eax
je 0x4032c6
push 0x173e
push eax
lea ecx, [ebp - 0x10]
call fcn.00403580
mov esi, dword [ebp - 0x10]
push 0x10
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40338c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40338c
mov eax, dword [esi + 0xfc]
mov dword [ebp - 0x10], 1
dec eax
je 0x403344
dec eax
jne 0x40334f
mov dword [ebp - 0x10], eax
lea eax, [ecx + 0x210]
push eax
call fcn.00404910
add esp, 4
test eax, eax
jne 0x40338c
mov ecx, dword [esi + 0xcc]
lea eax, [ecx + 0x210]
push eax
lea eax, [ecx + 0xa10]
push 0x400
push eax
call fcn.0052de50
add esp, 0xc
jmp 0x40334f
mov ecx, esi
call fcn.00403b70
test eax, eax
je 0x40338c
call fcn.00404c40
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x47c]
push dword [esi + 0xcc]
call fcn.004057e0
lea eax, [ebp - 0x47c]
mov byte [ebp - 4], 3
mov ecx, eax
mov dword [esi + 0x20], eax
call fcn.00405d30
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 1
call fcn.00405a00
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4033aa
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret