Function at 0x435853
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], 1
call ebx
cmp eax, edi
mov esi, dword [ebp + 8]
mov dword [esi], eax
je 0x435a2f
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
call ebx
cmp eax, edi
mov dword [esi + 4], eax
jne 0x4358bb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x435a2f
push edi
push edi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp dword [esi + 4], edi
mov dword [esi + 8], eax
jne 0x4358e3
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 4]
call edi
jmp 0x435a2f
push edi
push 0x11d8
push edi
push 4
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x435913
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 4]
call edi
push dword [esi + 8]
jmp 0x4358dc
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, edi
jne 0x43593e
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 4]
call edi
push dword [esi + 8]
call edi
push dword [esi + 0xc]
jmp 0x4358dc
mov dword [esi + 0x10], ebx
xor eax, eax
mov ecx, 0x476
mov edi, ebx
rep stosd dword es:[edi], eax
mov dword [ebx], 0x11d8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 8], eax
mov eax, dword [esi]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 8]
or dword [ebx + 0x34], 3
or dword [ebx + 0x3c], 0x10
mov dword [ebx + 0x20], eax
push 0x104
lea eax, [ebx + 0xb8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
and word [ebp - 0x428], 0
xor eax, eax
mov ecx, 0x105
lea edi, [ebp - 0x426]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x428]
push eax
call fcn.00435539
lea eax, [ebp - 0x428]
push eax
call fcn.0040cd33
cmp eax, 1
pop ecx
jbe 0x4359db
lea eax, [ebp - 0x428]
push eax
lea eax, [ebx + 0x9a0]
push eax
call fcn.00436ea3
pop ecx
pop ecx
push 5
pop ecx
lea edi, [ebx + 0x3c4]
mov esi, 0x435a98
rep movsd dword es:[edi], dword [esi]
push 0x12
pop ecx
push 0
movsb byte es:[edi], byte [esi]
push 1
lea edi, [ebx + 0x5cc]
mov esi, 0x435a50
push 0x1f0fff
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add ebx, 0x24
push ebx
call esi
push eax
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x435a27
cmp dword [ebx], 0
jne 0x435a36
push dword [ebp + 8]
call fcn.00435826
mov eax, 0x80004005
jmp 0x435a38
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.004037c0
leave
ret 8