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

Disassembly:
mov eax, 0x49ad95
call fcn.00496f64
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4a8dcc
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov al, byte [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ebx
inc ecx
mov byte [esi + 0x15], bl
mov byte [esi + 0x154], bl
mov byte [esi + 0x14], cl
mov dword [esi + 0x18], ecx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x28], 0x3a98
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], cl
mov byte [esi + 0x13], bl
mov dword [esi + 0x178], ebx
mov dword [esi + 0x17c], ebx
mov dword [esi + 0x150], ebx
mov dword [esi + 0x158], ebx
mov dword [esi + 0x15c], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0x44], ebx
mov word [esi + 0x70], bx
mov byte [esi + 0x72], bl
mov byte [esi + 0xf], cl
mov dword [esi + 0x4c], 0x19
mov dword [esi + 0x48], 0x3e8
mov byte [esi + 0xd], cl
mov byte [esi + 0x5d], al
mov byte [esi + 0xa0], cl
push 3
pop edi
mov dword [esi + 0x160], edi
test al, al
je 0x487ace
call fcn.0047aa19
xor ecx, ecx
inc ecx
push ebx
push ecx
push ecx
mov dword [esi + 0x138], ebx
mov dword [esi + 0x13c], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0x14c], ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
call ebx
push 0
push 1
push 1
push 0
mov dword [esi + 0xf0], eax
call ebx
push 0
push 1
push 1
push 0
mov dword [esi + 0x124], eax
call ebx
push 0
push 1
push 1
push 0
mov dword [esi + 0x180], eax
call ebx
push 0
push 1
push 1
push 0
mov dword [esi + 0xf4], eax
call ebx
push 0x4a820c
push 1
push 1
push 0
mov dword [esi + 0xf8], eax
call ebx
push 0
push 1
push 1
push 0
mov dword [esi + 0x128], eax
call ebx
push 0
push 1
push 1
push 0
mov dword [esi + 0x12c], eax
call ebx
push 0
push 1
push 1
push 0
mov dword [esi + 0xfc], eax
call ebx
push 0
push 1
push 1
mov dword [esi + 0x100], eax
push 0
call ebx
push 0
push 1
push 1
push 0
mov dword [esi + 0x38], eax
call ebx
push 0
push 1
push 1
push 0
mov dword [esi + 0x210], eax
call ebx
mov edx, dword [ebp + 0x3c]
mov dword [esi + 0x130], eax
mov byte [esi + 0x8c], 0
test edx, edx
je 0x487c48
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x487c48
mov ecx, dword [ebp + 0x44]
test ecx, ecx
je 0x487c48
mov dword [esi + 0x84], edx
mov dword [esi + 0x88], eax
mov dword [esi + 0x80], ecx
mov byte [esi + 0x8d], 1
jmp 0x487c80
push 0
push 1
push 1
push 0
call ebx
push 0
push 1
push 1
push 0
mov dword [esi + 0x84], eax
call ebx
push 1
mov dword [esi + 0x88], eax
call fcn.0042493a
mov dword [esi + 0x80], eax
pop ecx
mov byte [eax], 0
mov byte [esi + 0x8d], 0
mov eax, dword [ebp + 0x30]
mov word [esi + 0x74], 0
test eax, eax
je 0x487cb5
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x487cb5
mov edx, dword [ebp + 0x38]
test edx, edx
je 0x487cb5
mov dword [esi + 0x104], eax
xor eax, eax
mov dword [esi + 0x78], edx
mov dword [esi + 0x108], ecx
mov byte [esi + 0x10c], 1
jmp 0x487cea
push 1
call fcn.0042493a
pop ecx
xor ecx, ecx
mov dword [esi + 0x78], eax
push ecx
push 1
push 1
push ecx
mov byte [eax], cl
call ebx
push 0
push 1
push 1
push 0
mov dword [esi + 0x104], eax
call ebx
mov dword [esi + 0x108], eax
xor eax, eax
mov byte [esi + 0x10c], al
push edi
mov ecx, esi
mov dword [esi + 0x168], eax
mov dword [esi + 0x16c], eax
mov dword [esi + 0x170], eax
mov dword [esi + 0x118], eax
mov dword [esi + 0x110], eax
mov dword [esi + 0x114], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x174], eax
mov word [esi + 8], 1
mov dword [esi + 0x134], eax
mov byte [esi + 0x12], 1
call fcn.004867f5
mov edx, dword [ebp + 0x24]
xor ecx, ecx
mov word [esi + 0xa], 0x101
mov byte [esi + 0xe], 1
mov dword [esi + 0x184], ecx
mov dword [esi + 0x188], ecx
mov dword [esi + 0x18c], ecx
mov word [esi + 0x68], cx
mov byte [esi + 0x6a], cl
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x60], 0x32
mov dword [esi + 0x190], ecx
mov dword [esi + 0x194], ecx
mov dword [esi + 0x198], ecx
mov dword [esi + 0x1a8], ecx
mov dword [esi + 0x1b0], ecx
mov dword [esi + 0x1ac], ecx
mov byte [esi + 0xc], 1
mov dword [esi + 0x20], 0x1000
mov dword [esi + 0x24], 0xa
test edx, edx
je 0x487dc3
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x487dc3
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x487dc1
mov byte [esi + 0x5c], 1
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], edx
mov dword [esi + 0x120], eax
jmp 0x487dfe
xor ecx, ecx
push ecx
push 1
push 1
push ecx
mov byte [esi + 0x5c], cl
call ebx
push 4
mov dword [esi + 0x120], eax
call fcn.0042493a
pop ecx
mov dword [esi + 0x50], eax
push 4
and dword [eax], 0
call fcn.004249e8
pop ecx
mov dword [esi + 0x58], eax
push 4
and dword [eax], 0
call fcn.0042493a
mov dword [esi + 0x54], eax
pop ecx
and dword [eax], 0
xor eax, eax
mov ecx, esi
mov dword [esi + 0x1c0], eax
mov dword [esi + 0x1bc], eax
mov dword [esi + 0x1b4], eax
mov dword [esi + 0x1b8], eax
push eax
mov dword [esi + 0x1c], 0x226
call fcn.00485815
xor eax, eax
mov dword [esi + 0x204], eax
mov dword [esi + 0x208], eax
mov dword [esi + 0x20c], eax
push eax
mov word [esi + 0x140], ax
push 1
mov dword [esi + 0x164], 0x40
mov dword [esi + 0x214], eax
push 1
mov dword [esi + 0x218], eax
push eax
mov dword [esi + 0x21c], eax
call ebx
cmp dword [ebp + 0xc], 0
mov dword [esi + 0x224], eax
mov byte [esi + 0x220], 0
je 0x487e95
cmp dword [ebp + 0x10], 0
je 0x487e95
push dword [ebp + 0x10]
mov ecx, esi
mov byte [esi + 0x148], 1
push dword [ebp + 0xc]
call fcn.0047af97
jmp 0x487ec4
push 0x18
mov byte [esi + 0x148], 0
call fcn.0042493a
mov edx, eax
pop ecx
test edx, edx
je 0x487eb5
push 6
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
jmp 0x487eb7
xor edx, edx
mov ecx, esi
mov dword [esi + 0x144], edx
call fcn.0047eb61
cmp dword [ebp + 0x14], 0
je 0x487eec
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x487eec
cmp dword [ebp + 0x1c], 0
je 0x487eec
push dword [ebp + 0x1c]
mov byte [esi + 0x3c], 1
mov ecx, esi
push dword [eax]
push dword [ebp + 0x14]
call fcn.0047aef6
jmp 0x487f42
mov byte [esi + 0x3c], 0
push 0x100
mov dword [esi + 0x34], 0x40
call fcn.004249e8
xor edi, edi
mov dword [esi + 0x30], eax
pop ecx
mov dword [ebp + 8], edi
cmp dword [esi + 0x34], edi
jbe 0x487f3b
push 0x10
call fcn.0042493a
pop ecx
mov ecx, eax
test ecx, ecx
je 0x487f2a
mov edi, ecx
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
jmp 0x487f2c
xor ecx, ecx
mov eax, dword [esi + 0x30]
mov dword [eax + edi*4], ecx
inc edi
mov dword [ebp + 8], edi
cmp edi, dword [esi + 0x34]
jb 0x487f0f
mov ecx, esi
call fcn.0047b1cb
xor eax, eax
mov dword [esi + 0x23c], eax
mov dword [esi + 0x240], eax
push eax
mov dword [esi + 0x244], eax
push 1
mov dword [esi + 0x228], eax
mov dword [esi + 0x22c], eax
push 1
mov dword [esi + 0x230], eax
push eax
mov byte [esi + 0x238], al
call ebx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x234], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x40