Function at 0x1004ad30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100acbfe
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x100d3020]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d3020]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa8]
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
mov byte [esp + 0xa0], 1
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x1004b3c2
mov ecx, dword [ecx + 8]
sub ecx, eax
sar ecx, 1
je 0x1004b3c2
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea edi, [ecx + ecx + 8]
xor esi, esi
lea esp, [esp]
lea ecx, [esp + 0x78]
call fcn.1009b750
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0xa8], 2
call fcn.10002570
mov byte [esp + 0xa0], 1
cmp dword [esp + 0x90], 8
jb 0x1004ae0c
mov ecx, dword [esp + 0x7c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
jae 0x1004ae1b
lea eax, [esp + 0x44]
push eax
push edi
push ebx
push 4
push ebx
push 0xffffffffffffffff
call ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
je 0x1004ae78
cmp eax, 0xb7
jne 0x1004ae95
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 1
cmp esi, 0x20
mov dword [esp + 0x18], ebx
jl 0x1004add0
cmp dword [esp + 0x58], 8
jb 0x1004b3c2
mov ecx, dword [esp + 0x44]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x1004b3c2
cmp dword [esp + 0x58], 8
jb 0x1004b3c2
mov eax, dword [esp + 0x44]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x1004b3c2
mov esi, dword [esp + 0x18]
push ebx
push ebx
push ebx
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x1004aedb
cmp dword [esp + 0x58], 8
jb 0x1004aec4
mov edx, dword [esp + 0x44]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
push esi
jmp 0x1004b3bc
push edi
push ebx
push eax
call sub.MSVCR80.dll_memset
mov edi, dword [esp + 0x3c]
mov ecx, dword [edi + 4]
add esp, 0xc
cmp ecx, ebx
jne 0x1004aef5
xor eax, eax
jmp 0x1004aefc
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 1
cmp ecx, ebx
lea esi, [eax + eax]
je 0x1004af0c
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 1
jne 0x1004af12
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x1c]
push esi
push ecx
push edx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
mov byte [esp + 0xa0], 3
xor ebp, ebp
nop
lea ecx, [esp + 0x78]
call fcn.1009b750
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8], 4
call fcn.10002570
mov esi, 8
mov byte [esp + 0xa0], 3
cmp dword [esp + 0x90], esi
jb 0x1004af80
mov eax, dword [esp + 0x7c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0x24
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov byte [esp + 0xa0], 5
je 0x1004afb6
cmp dword [esp + 0x74], esi
mov edx, dword [esp + 0x60]
jae 0x1004afa8
lea edx, [esp + 0x60]
push ebx
mov ebx, eax
call fcn.1007ebd0
mov edi, eax
xor ebx, ebx
jmp 0x1004afb8
xor edi, edi
mov byte [esp + 0xa0], 3
mov eax, dword [edi]
cmp eax, ebx
je 0x1004afd6
cmp byte [edi + 4], bl
je 0x1004b06a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x20], 8
jb 0x1004afe8
mov eax, dword [edi + 0xc]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [edi + 0x20], 7
mov dword [edi + 0x1c], ebx
push edi
mov word [edi + 0xc], bx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add ebp, 1
add esp, 4
cmp ebp, 0x20
jl 0x1004af40
mov edi, 8
cmp dword [esp + 0x74], edi
jb 0x1004b023
mov ecx, dword [esp + 0x60]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x58], edi
mov esi, 7
mov word [esp + 0x60], bx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], esi
jb 0x1004b048
mov edx, dword [esp + 0x44]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x1004b3bc
mov ebp, dword [esp + 0x2c]
lea esi, [ebp + 8]
cmp esi, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], esi
mov byte [esp + 0x38], bl
je 0x1004b0b2
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x1004b090
xor al, al
jmp 0x1004b0ae
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x1004b0a8
cmp eax, 0x80
je 0x1004b0a8
xor al, al
jmp 0x1004b0ae
mov byte [esi + 9], 1
mov al, 1
mov byte [esp + 0x38], al
lea ecx, [ebp + 0x8c]
mov byte [esp + 0xa0], 7
cmp dword [ecx], ebx
mov dword [esp + 0x30], ecx
je 0x1004b315
mov eax, dword [ecx + 4]
cmp eax, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
je 0x1004b0e5
push eax
call ebp
mov edx, dword [esp + 0x30]
mov dword [edx + 4], ebx
mov ecx, edx
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov ecx, dword [esp + 0x30]
mov dword [ecx + 4], eax
jne 0x1004b17b
cmp esi, ebx
je 0x1004b11c
cmp byte [esp + 0x38], bl
je 0x1004b11c
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1004b11c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 9], bl
lea eax, [esp + 0x28]
call fcn.1004bb30
mov edi, 8
cmp dword [esp + 0x74], edi
jb 0x1004b13d
mov edx, dword [esp + 0x60]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x58], edi
mov esi, 7
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
jb 0x1004b162
mov eax, dword [esp + 0x44]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call ebp
jmp 0x1004b3b7
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + 0x90]
cmp ebp, ebx
jne 0x1004b1b2
cmp esi, ebx
je 0x1004b1a4
cmp byte [esp + 0x38], bl
je 0x1004b1a4
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1004b1a4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 9], bl
lea eax, [esp + 0x28]
call fcn.1004bb30
jmp 0x1004b00b
cmp dword [esp + 0x54], ebx
je 0x1004b206
cmp dword [esp + 0x70], ebx
je 0x1004b206
lea edx, [esp + 0x5c]
push edx
lea esi, [esp + 0x7c]
call fcn.10005260
push 0xa
mov byte [esp + 0xa4], 8
call fcn.10037950
push ebx
lea eax, [esp + 0x44]
push eax
or eax, 0xffffffff
call fcn.1000c260
mov esi, dword [esp + 0x8c]
add esi, esi
lea ecx, [esi + 8]
cmp ecx, 0x7ff8
jbe 0x1004b238
lea ecx, [esp + 0x78]
call fcn.10002160
lea esi, [esp + 0x34]
call fcn.1004a120
lea eax, [esp + 0x28]
call fcn.1004bb30
lea ecx, [esp + 0x5c]
call fcn.10002160
lea ecx, [esp + 0x40]
call fcn.10002160
lea esi, [esp + 0x18]
call fcn.1009bb30
jmp 0x1004b3c2
mov word [ebp], 1
add ebp, 2
xor edx, edx
cmp byte [esp + 0xac], bl
sete dl
add ebp, 2
mov word [ebp - 2], dx
cmp dword [esp + 0x90], 8
mov eax, dword [esp + 0x7c]
jae 0x1004b266
lea eax, [esp + 0x7c]
push esi
push eax
push ebp
call sub.MSVCR80.dll_memcpy
mov dword [esi + ebp], ebx
mov esi, dword [esp + 0x38]
add esp, 0xc
add esi, 0x8c
call fcn.1009bb10
lea ecx, [esp + 0x78]
call fcn.10002160
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp + 0x44]
add ebp, 0x44
cmp eax, ebx
je 0x1004b2a1
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x20]
cmp eax, ebx
je 0x1004b2b3
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [esp + 0x3c]
call fcn.100826e0
lea esi, [esp + 0x27]
mov ecx, 0x4e20
mov eax, ebp
call fcn.1007ed50
mov ecx, 0x1388
mov eax, edi
call fcn.1007ed50
lea esi, [esp + 0x18]
call fcn.1009bb30
lea esi, [esp + 0x34]
call fcn.1004a120
lea eax, [esp + 0x28]
call fcn.1004bb30
lea ecx, [esp + 0x5c]
call fcn.10002160
lea ecx, [esp + 0x40]
call fcn.10002160
lea esi, [esp + 0x18]
call fcn.1009bb30
mov al, 1
jmp 0x1004b3c4
cmp esi, ebx
je 0x1004b330
cmp byte [esp + 0x38], bl
je 0x1004b330
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1004b330
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 9], bl
mov eax, dword [edi]
cmp eax, ebx
je 0x1004b33d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x20], 8
jb 0x1004b34f
mov ecx, dword [edi + 0xc]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, 7
mov dword [edi + 0x20], esi
mov dword [edi + 0x1c], ebx
push edi
mov word [edi + 0xc], bx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edi, 8
add esp, 4
cmp dword [esp + 0x74], edi
jb 0x1004b37f
mov edx, dword [esp + 0x60]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x58], edi
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
jb 0x1004b39f
mov eax, dword [esp + 0x44]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.100a4489
add esp, 0x90
ret 8