Function at 0x102497d
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
push ebx
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
push 4
mov esi, ecx
mov dword [ebp - 4], 0x80004005
stosd dword es:[edi], eax
mov dword [ebp - 0x10], ebx
call sub.KERNEL32.dll_OpenFileMappingW
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x10249f3
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.0100968c
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1024e5c
test byte [eax + 0x1c], 1
je 0x1024e5c
push dword [ebp - 4]
push 0x1004210
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1024e5c
push 0x38
push ebx
push ebx
push 4
push eax
call sub.KERNEL32.dll_MapViewOfFile
mov ebx, eax
test ebx, ebx
jne 0x1024a47
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.0100968c
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1024dfa
test byte [eax + 0x1c], 1
je 0x1024dfa
push dword [ebp - 4]
push 0x1004210
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1024dfa
push 0x218
push 0
push 0
push 2
push dword [ebx + 0x28]
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp + 8], eax
test eax, eax
jne 0x1024aa3
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.0100968c
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1024dec
test byte [eax + 0x1c], 1
je 0x1024dec
push dword [ebp - 4]
push 0x1004210
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1024dec
push 0
push esi
mov edi, 0x1023676
push edi
call sub.KERNEL32.dll_CreateThreadpoolWait
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1024ae3
mov eax, dword [section..data]
cmp eax, section..data
je 0x1024daa
test byte [eax + 0x1c], 1
je 0x1024daa
push 0x80004005
push 0x1004210
push 0x33
jmp 0x1024cdd
push 0
push esi
push edi
call sub.KERNEL32.dll_CreateThreadpoolWait
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1024b1e
mov eax, dword [section..data]
cmp eax, section..data
je 0x1024daa
test byte [eax + 0x1c], 1
je 0x1024daa
push 0x80004005
push 0x1004210
push 0x34
jmp 0x1024cdd
push 0
push dword [ebx + 0x18]
push dword [ebp - 0xc]
call sub.KERNEL32.dll_SetThreadpoolWait
push 0
push dword [ebx + 0x10]
push dword [ebp - 0xc]
call sub.KERNEL32.dll_SetThreadpoolWait
mov eax, dword [ebp + 8]
mov dword [eax], 0x8000000a
push dword [ebx + 0x30]
call sub.KERNEL32.dll_SetEvent
test eax, eax
jne 0x1024b84
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.0100968c
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1024daa
test byte [eax + 0x1c], 1
je 0x1024daa
push dword [ebp - 4]
push 0x1004210
push 0x35
jmp 0x1024cdd
push dword [ebx + 8]
mov eax, dword [esi]
push dword [ebx + 4]
mov ecx, esi
push dword [ebx]
call dword [eax + 0x10]
mov dword [ebp - 4], eax
test eax, eax
jl 0x1024c63
mov eax, dword [section..data]
mov edi, section..data
cmp eax, edi
je 0x1024bd9
test byte [eax + 0x1c], 4
je 0x1024bd9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push eax
mov eax, dword [section..data]
push 0x1004210
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01018c98
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20c], eax
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x210], edx
mov eax, dword [eax + 4]
mov dword [ecx + 0x214], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov esi, dword [ebp + 8]
push eax
push 0x104
lea eax, [esi + 4]
push eax
call fcn.0100a010
mov dword [ebp - 4], eax
test eax, eax
jge 0x1024c59
mov eax, dword [section..data]
cmp eax, edi
je 0x1024c4f
test byte [eax + 0x1c], 1
je 0x1024c4f
push dword [ebp - 4]
mov esi, 0x1004210
push esi
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1024c54
mov esi, 0x1004210
mov eax, dword [ebp + 8]
jmp 0x1024ca1
and dword [esi], 0
mov esi, 0x1004210
jmp 0x1024ca6
mov eax, dword [section..data]
mov edi, section..data
cmp eax, edi
je 0x1024c8c
test byte [eax + 0x1c], 1
je 0x1024c8c
push dword [ebp - 4]
push 0x1004210
push 0x38
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
mov eax, dword [ebp + 8]
and dword [eax + 0x20c], 0
xor ecx, ecx
mov word [eax + 4], cx
mov esi, 0x1004210
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
push dword [ebx + 0x20]
call sub.KERNEL32.dll_SetEvent
test eax, eax
jne 0x1024ced
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.0100968c
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, edi
je 0x1024daa
test byte [eax + 0x1c], 1
je 0x1024daa
push dword [ebp - 4]
push esi
push 0x39
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1024daa
cmp dword [ebp - 4], 0
jge 0x1024d1d
mov eax, dword [section..data]
cmp eax, edi
je 0x1024daa
test byte [eax + 0x1c], 1
je 0x1024daa
push esi
push 0x3a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x1024daa
mov eax, dword [section..data]
cmp eax, edi
je 0x1024d3a
test byte [eax + 0x1c], 4
je 0x1024d3a
push esi
push 0x3b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x18]
push 0x36ee80
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
call sub.KERNEL32.dll_WaitForMultipleObjects
test eax, eax
jne 0x1024d70
mov eax, dword [section..data]
cmp eax, edi
je 0x1024da6
test byte [eax + 0x1c], 4
je 0x1024da6
push esi
push 0x3c
jmp 0x1024d9b
cmp eax, 1
jne 0x1024d89
mov eax, dword [section..data]
cmp eax, edi
je 0x1024da6
test byte [eax + 0x1c], 4
je 0x1024da6
push esi
push 0x3d
jmp 0x1024d9b
mov eax, dword [section..data]
cmp eax, edi
je 0x1024da6
test byte [eax + 0x1c], 1
je 0x1024da6
push esi
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
and dword [ebp - 4], 0
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x1024dcd
push eax
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.dll_SetThreadpoolWait
push 1
push dword [ebp - 0xc]
call sub.KERNEL32.dll_WaitForThreadpoolWaitCallbacks
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseThreadpoolWait
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1024dec
push 0
push 0
push esi
call sub.KERNEL32.dll_SetThreadpoolWait
push 1
push esi
call sub.KERNEL32.dll_WaitForThreadpoolWaitCallbacks
push esi
call sub.KERNEL32.dll_CloseThreadpoolWait
cmp dword [ebp + 8], 0
je 0x1024dfa
push dword [ebp + 8]
call sub.KERNEL32.dll_UnmapViewOfFile
test ebx, ebx
je 0x1024e54
mov eax, dword [ebx + 0x10]
or eax, dword [ebx + 0x14]
je 0x1024e0e
push dword [ebx + 0x10]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebx + 0x18]
or eax, dword [ebx + 0x1c]
je 0x1024e1e
push dword [ebx + 0x18]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebx + 0x10]
or eax, dword [ebx + 0x14]
je 0x1024e2e
push dword [ebx + 0x10]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebx + 0x28]
or eax, dword [ebx + 0x2c]
je 0x1024e3e
push dword [ebx + 0x28]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebx + 0x30]
or eax, dword [ebx + 0x34]
je 0x1024e4e
push dword [ebx + 0x30]
call sub.KERNEL32.dll_CloseHandle
push ebx
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [ebp - 0x14]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4