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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x600018
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [0x67f6b8], ebx
jne 0x51d4d3
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004e5ba0
mov dword [esp + 0x74], eax
mov byte [eax + 0x25], 1
mov eax, dword [esp + 0x74]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x74]
mov dword [eax], eax
mov eax, dword [esp + 0x74]
mov dword [eax + 8], eax
mov dword [esp + 0x78], ebx
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x8c], ebx
mov eax, dword [0x67f6c0]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.0040a210
add eax, 0x10
mov dword [esi], eax
call fcn.0051e200
call fcn.004e5ba0
mov dword [esp + 0x68], eax
mov byte [eax + 0x25], 1
mov eax, dword [esp + 0x68]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x68]
mov dword [eax], eax
mov eax, dword [esp + 0x68]
mov dword [eax + 8], eax
mov dword [esp + 0x6c], ebx
lea ecx, [esp + 0x64]
mov byte [esp + 0x88], 1
mov eax, dword [0x67f6c4]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.0040a210
add eax, 0x10
mov dword [esi], eax
call fcn.0051e200
mov eax, dword [0x67f6b8]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x44], eax
mov byte [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x51d594
cmp eax, 0x80
jne 0x51d599
mov byte [esp + 0x40], 1
mov byte [esp + 0x88], 2
mov edx, dword [esp + 0x74]
mov esi, dword [edx]
lea edi, [esp + 0x70]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], edi
cmp edi, ebx
mov ebp, dword [esp + 0x74]
je 0x51d5c3
lea eax, [esp + 0x70]
cmp edi, eax
je 0x51d5c8
call fcn.005d29f1
cmp esi, ebp
je 0x51d758
cmp edi, ebx
jne 0x51d5d9
call fcn.005d29f1
cmp esi, dword [edi + 4]
jne 0x51d5e3
call fcn.005d29f1
call fcn.004e5ba0
mov dword [esp + 0x50], eax
mov byte [eax + 0x25], 1
mov eax, dword [esp + 0x50]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x50]
mov dword [eax], eax
mov eax, dword [esp + 0x50]
mov dword [eax + 8], eax
mov dword [esp + 0x54], ebx
mov byte [esp + 0x88], 3
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
call fcn.0051ea50
mov eax, dword [esp + 0x5c]
mov esi, dword [eax]
lea edi, [esp + 0x58]
add esp, 0xc
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
cmp edi, ebx
mov ebp, dword [esp + 0x50]
je 0x51d647
lea ecx, [esp + 0x4c]
cmp edi, ecx
je 0x51d64c
call fcn.005d29f1
cmp esi, ebp
je 0x51d705
cmp edi, ebx
jne 0x51d65d
call fcn.005d29f1
cmp esi, dword [edi + 4]
jne 0x51d667
call fcn.005d29f1
cmp dword [0x67f6bc], 0
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x14]
mov ebx, dword [esi + 0x10]
mov ebp, dword [esi + 0x18]
mov dword [esp + 0x20], eax
je 0x51d6ed
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51d686
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x18]
push ecx
mov edi, eax
lea edx, [esp + 0x20]
push edx
lea eax, [edi + edi + 0xc]
push eax
push ebx
call fcn.0051f2f0
test eax, eax
je 0x51d6ed
cmp dword [esp + 0x18], 0
mov esi, dword [esp + 0x1c]
je 0x51d6cc
push edi
lea ecx, [esi + 0xc]
push ebx
push ecx
mov dword [esi + 8], edi
call fcn.005d31ba
add esp, 0xc
test ebp, ebp
mov eax, dword [esi]
je 0x51d6de
or eax, 1
mov dword [esi + 4], 0
jmp 0x51d6e8
mov edx, dword [esp + 0x20]
and eax, 0xfffffffe
mov dword [esi + 4], edx
and eax, 0xfffffffd
mov dword [esi], eax
lea esi, [esp + 0x24]
call fcn.004541c0
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
xor ebx, ebx
jmp 0x51d637
mov byte [esp + 0x88], 2
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
mov ecx, dword [ecx]
push esi
lea eax, [esp + 0x50]
push eax
mov edx, eax
push ecx
push edx
lea edx, [esp + 0x54]
push edx
mov edi, eax
call fcn.00454710
mov eax, dword [esp + 0x50]
push eax
call fcn.005d2367
add esp, 4
lea esi, [esp + 0x2c]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.004541c0
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
jmp 0x51d5b3
mov ecx, dword [esp + 0x68]
mov ebp, dword [ecx]
lea esi, [esp + 0x64]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], esi
lea ebx, [ebx]
cmp esi, ebx
mov edi, dword [esp + 0x68]
je 0x51d780
lea edx, [esp + 0x64]
cmp esi, edx
je 0x51d785
call fcn.005d29f1
cmp ebp, edi
je 0x51d934
cmp esi, ebx
jne 0x51d796
call fcn.005d29f1
cmp ebp, dword [esi + 4]
jne 0x51d7a0
call fcn.005d29f1
call fcn.004e5ba0
mov dword [esp + 0x5c], eax
mov byte [eax + 0x25], 1
mov eax, dword [esp + 0x5c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [eax], eax
mov eax, dword [esp + 0x5c]
mov dword [eax + 8], eax
mov dword [esp + 0x60], ebx
mov byte [esp + 0x88], 4
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x58]
push ecx
push edx
push eax
call fcn.0051ea50
mov eax, dword [esp + 0x68]
mov esi, dword [eax]
lea edi, [esp + 0x64]
add esp, 0xc
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
cmp edi, ebx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x48], ecx
je 0x51d808
lea edx, [esp + 0x58]
cmp edi, edx
je 0x51d80d
call fcn.005d29f1
cmp esi, dword [esp + 0x48]
je 0x51d8e1
cmp edi, ebx
jne 0x51d820
call fcn.005d29f1
cmp esi, dword [edi + 4]
jne 0x51d82a
call fcn.005d29f1
cmp dword [0x67f6bc], 0
mov ecx, dword [ebp + 0x14]
mov ebx, dword [esi + 0x10]
lea eax, [esi + 0x20]
mov esi, dword [esi + 0x18]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
je 0x51d8c9
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51d850
sub eax, edx
sar eax, 1
mov ebp, eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [ebp + ebp + 0xc]
push ecx
push ebx
call fcn.0051f2f0
test eax, eax
je 0x51d8c5
cmp dword [esp + 0x20], 0
mov edi, dword [esp + 0x1c]
je 0x51d896
push ebp
lea edx, [edi + 0xc]
push ebx
push edx
mov dword [edi + 8], ebp
call fcn.005d31ba
add esp, 0xc
test esi, esi
mov eax, dword [edi]
je 0x51d8a8
or eax, 1
mov dword [edi + 4], 0
jmp 0x51d8b2
mov ecx, dword [esp + 0x18]
and eax, 0xfffffffe
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x24]
or eax, 2
test ecx, ecx
mov dword [edi], eax
je 0x51d8c5
mov edx, dword [ecx]
or edx, eax
mov dword [edi], edx
mov ebp, dword [esp + 0x30]
lea esi, [esp + 0x34]
call fcn.004541c0
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
xor ebx, ebx
jmp 0x51d7f4
mov byte [esp + 0x88], 2
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx]
push esi
lea eax, [esp + 0x5c]
push eax
mov edx, eax
push ecx
push edx
lea edx, [esp + 0x5c]
push edx
mov edi, eax
call fcn.00454710
mov eax, dword [esp + 0x5c]
push eax
call fcn.005d2367
add esp, 4
lea esi, [esp + 0x2c]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call fcn.004541c0
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
jmp 0x51d770
cmp byte [esp + 0x40], 0
je 0x51d946
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esp + 0x88], 0
mov esi, dword [esp + 0x68]
mov edx, dword [esp + 0x68]
mov ecx, dword [edx]
push esi
lea eax, [esp + 0x68]
push eax
mov edx, eax
push ecx
push edx
lea eax, [esp + 0x5c]
push eax
mov edi, edx
call fcn.00454710
mov ecx, dword [esp + 0x68]
push ecx
call fcn.005d2367
add esp, 4
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0x74]
push eax
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov edx, dword [eax]
push edx
mov esi, ecx
push esi
lea edx, [esp + 0x5c]
push edx
mov edi, ecx
call fcn.00454710
mov eax, dword [esp + 0x74]
push eax
call fcn.005d2367
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret