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

Disassembly:
push 0xffffffffffffffff
push 0x100af935
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x100d3020]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d3020]
xor eax, esp
push eax
lea eax, [esp + 0xf4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x104]
lea esi, [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x1c], esi
mov byte [esp + 0x20], bl
je 0x1004b610
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x1004b5ee
xor al, al
jmp 0x1004b60c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x1004b606
cmp eax, 0x80
je 0x1004b606
xor al, al
jmp 0x1004b60c
mov byte [esi + 9], 1
mov al, 1
mov byte [esp + 0x20], al
mov dword [esp + 0xfc], ebx
cmp dword [ebp + 0x8c], ebx
je 0x1004b655
mov eax, dword [ebp + 0x90]
cmp eax, ebx
je 0x1004b636
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp + 0x90], ebx
mov eax, dword [ebp + 0x8c]
push ebx
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp + 0x90], eax
jne 0x1004b67e
cmp esi, ebx
je 0x1004ba85
cmp byte [esp + 0x20], bl
je 0x1004ba85
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1004ba85
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1004ba82
mov ecx, eax
mov edx, eax
cmp edx, ebx
je 0x1004b655
movzx eax, word [edx]
movzx esi, word [edx + 2]
add edx, 2
mov dword [ecx + 0x7ff4], ebx
mov dword [esp + 0x50], esi
add edx, 2
mov byte [esp + 0x1b], bl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
cmp ax, 1
mov byte [esp + 0xfc], 1
jne 0x1004b955
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
lea eax, [esp + 0x90]
mov byte [esp + 0xfc], 2
call fcn.1000b220
mov byte [esp + 0xfc], 3
cmp dword [esp + 0xa4], ebx
je 0x1004b706
lea ecx, [esp + 0x30]
push ecx
push 0xa
lea edi, [esp + 0x98]
call fcn.10081590
add esp, 8
mov esi, 7
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
mov byte [esp + 0xfc], 5
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x1004b8d8
mov ecx, dword [esp + 0x38]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x1004b8d8
xor edi, edi
lea esi, [esp + 0x30]
call fcn.10016540
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x7c]
call fcn.10002570
mov edi, 1
call fcn.10016540
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x60]
call fcn.10002570
cmp dword [esp + 0x88], ebx
je 0x1004b8b9
cmp dword [esp + 0x6c], ebx
je 0x1004b8b9
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0xfc], 6
mov eax, dword [esp + 0x5c]
mov edi, 8
cmp dword [esp + 0x70], edi
jae 0x1004b7cc
lea eax, [esp + 0x5c]
mov ecx, 0x7ff8
lea esi, [esp + 0x24]
call fcn.1009baa0
test al, al
je 0x1004b84e
cmp dword [esp + 0x2c], 0xb7
jne 0x1004b84e
call fcn.1009bad0
test al, al
je 0x1004b84e
mov edx, dword [esp + 0x28]
cmp edx, ebx
je 0x1004b845
lea eax, [esp + 0xac]
call fcn.1000b220
mov byte [esp + 0xfc], 7
cmp dword [esp + 0xc0], ebx
je 0x1004b831
lea edx, [esp + 0x40]
push edx
push 0xa
lea edi, [esp + 0xb4]
call fcn.10081590
add esp, 8
mov edi, 8
lea ecx, [esp + 0xac]
mov byte [esp + 0xfc], 6
call fcn.10002160
lea esi, [esp + 0x24]
call fcn.1009bb10
lea esi, [esp + 0x24]
call fcn.1009bb30
lea ecx, [esp + 0x40]
call fcn.10004a20
test al, al
jne 0x1004b869
mov byte [esp + 0x1b], 1
cmp dword [esp + 0x70], edi
mov edx, dword [esp + 0x5c]
jae 0x1004b877
lea edx, [esp + 0x5c]
push ebx
lea ebx, [esp + 0xcc]
call fcn.1007ebd0
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x1004b8a0
cmp byte [esp + 0xcc], 0
je 0x1004b8a0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea esi, [esp + 0xc8]
call fcn.1007eca0
lea esi, [esp + 0x24]
call fcn.1009bb30
xor ebx, ebx
jmp 0x1004b8be
mov edi, 8
cmp dword [esp + 0x70], edi
jb 0x1004b8d1
mov eax, dword [esp + 0x5c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, 7
jmp 0x1004b8dd
mov edi, 8
cmp dword [esp + 0x8c], edi
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
jb 0x1004b900
mov ecx, dword [esp + 0x78]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0xa8], edi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
jb 0x1004b92c
mov edx, dword [esp + 0x94]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0xa8], esi
lea esi, [esp + 0x30]
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
mov byte [esp + 0xfc], 1
call fcn.10016360
jmp 0x1004b9a7
cmp ax, 2
jne 0x1004b9a7
lea eax, [esp + 0xac]
mov byte [esp + 0x1b], 1
call fcn.1000b220
mov byte [esp + 0xfc], 8
cmp dword [esp + 0xc0], ebx
je 0x1004b993
lea eax, [esp + 0x40]
push eax
push 0xa
lea edi, [esp + 0xb4]
call fcn.10081590
add esp, 8
lea ecx, [esp + 0xac]
mov byte [esp + 0xfc], 1
call fcn.10002160
mov eax, dword [ebp + 0x90]
push 0x7ff8
push ebx
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp + 0x90]
add esp, 0xc
cmp eax, ebx
je 0x1004b9d3
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp + 0x90], ebx
mov eax, dword [ebp + 0xc]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
je 0x1004b9e6
push eax
call edi
mov byte [ebp + 0x11], bl
mov eax, dword [ebp + 0x44]
cmp eax, ebx
je 0x1004b9f4
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [esp + 0x1b], bl
je 0x1004ba61
mov esi, dword [ebp + 0x9c]
cmp esi, ebx
mov dword [esp + 0x54], esi
je 0x1004ba10
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
cmp esi, ebx
mov byte [esp + 0xfc], 9
je 0x1004ba4c
mov eax, dword [esp + 0x50]
cmp ax, bx
jne 0x1004ba35
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
push ebx
push 1
push ebx
lea eax, [esp + 0x4c]
push eax
jmp 0x1004ba48
cmp ax, 1
jne 0x1004ba4c
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call edx
cmp esi, ebx
mov byte [esp + 0xfc], 1
je 0x1004ba61
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea esi, [esp + 0x40]
call fcn.10016360
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x1004ba85
cmp byte [esp + 0x20], bl
je 0x1004ba85
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1004ba85
push eax
call edi
mov byte [esi + 9], bl
mov ecx, dword [esp + 0xf4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.100a4489
add esp, 0xec
ret 4