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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov esi, esp
mov dword [esi + 0xa8], ebp
call 0x4e598c
pop eax
mov dword [esi + 0xac], esp
mov dword [esi + 0xb8], 0xffffffff
mov dword [esi + 0xb4], 0x504480
mov dword [esi + 0x7c], edx
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword fs:[0]
mov dword [esi + 0xb0], eax
lea eax, [esi + 0xb0]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0x14]
mov ah, byte [ebp + 0x10]
lock inc dword [0x5c3014]
jle 0x4e605e
mov edi, dword [0x5c301c]
mov ebx, dword fs:[0x2c]
mov edi, dword [ebx + edi*4]
cmp byte [edi + 0x3c], 0
jne 0x4e60d1
mov edi, dword [0x5c301c]
mov ebx, dword fs:[0x2c]
mov edi, dword [ebx + edi*4]
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], 0x57e6ec
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], ecx
mov byte [esi + 0x34], ah
mov byte [esi + 0x35], al
inc dword [edi + 0x38]
mov byte [edi + 0x3c], 1
mov eax, dword [0x5c2f74]
cmp eax, 0x3ffffffd
ja 0x4e5a4f
lea ecx, [eax + 1]
lock cmpxchg dword [0x5c2f74], ecx
je 0x4e5a59
mov ecx, 0x5c2f74
call fcn.00528f90
movzx eax, byte [0x5c2f7c]
mov eax, dword [esi + 0x7c]
cmp dword [0x5c2f80], 0
mov eax, dword [eax + 0x10]
jne 0x4e5abb
mov byte [esi + 1], 1
mov dword [esi + 0xb8], 0
push dword [esi + 0x10]
call eax
add esp, 4
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edx
cmp byte [esi + 0x35], 0
jne 0x4e5b62
mov edi, dword [0x5c301c]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + edi*4]
cmp dword [ecx + 0x38], 1
jbe 0x4e5b6b
mov byte [esi + 0x1c], 1
jmp 0x4e5c6b
mov byte [esi + 1], 1
mov dword [esi + 0xb8], 0
push dword [esi + 0x10]
call eax
add esp, 4
mov dword [esi + 0x24], eax
mov eax, dword [0x5c2f80]
mov ecx, dword [0x5c2f84]
mov dword [esi + 0x28], edx
lea edx, [esi + 0x24]
mov byte [esi + 1], 1
push edx
push eax
call dword [ecx + 0x14]
add esp, 8
mov edx, 0xffffffff
lock xadd dword [0x5c2f74], edx
dec edx
mov eax, edx
and eax, 0xbfffffff
cmp eax, 0x80000000
jne 0x4e5b25
mov ecx, 0x5c2f74
mov byte [esi + 1], 0
mov dword [esi + 0xb8], 0
call fcn.00528ec0
mov eax, dword [0x5c301c]
mov ecx, dword fs:[0x2c]
cmp byte [ebp + 0x10], 0
mov eax, dword [ecx + eax*4]
mov dword [esi + 0xb8], 0
mov byte [eax + 0x3c], 0
je 0x4e5bac
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x10]
mov byte [esi + 1], 0
mov edx, dword [eax + 0xc]
call fcn.004d8a50
jmp 0x4e5d7d
mov byte [esi + 0x1c], 3
jmp 0x4e5c6b
movzx eax, byte [0x5c2f70]
mov ecx, dword [esi + 0xc]
mov bl, 1
movzx eax, al
add ecx, dword [eax*4 + 0x4e6368]
jmp ecx
lea eax, [esi + 0x3c]
mov dword [esi + 0x14], 0
mov dword [esi + 0x3c], 0x57e7b4
mov dword [esi + 0x40], 1
mov dword [esi + 0x4c], 0
mov dword [esi + 0x44], 4
mov byte [esi + 0x18], 0
mov dword [esi + 0x48], 0
mov byte [esi + 1], 0
lea ecx, [esi + 0x14]
lea edx, [esi + 0x68]
push eax
push ecx
push edx
call fcn.004cc340
add esp, 0xc
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x6c]
mov byte [esi + 1], 0
call fcn.004cc470
mov ecx, 7
int 0x29
ud2
mov ecx, dword [esi + 0x30]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x80], ecx
lea ecx, [esi + 0x98]
mov edx, dword [edx + 0xc]
mov byte [esi + 1], 1
push eax
push ecx
call edx
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0xc]
add esp, 8
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x9c]
xor eax, 0x57a64178
xor ecx, 0xb98b1b71
or ecx, eax
jne 0x4e5d7f
mov ecx, dword [esi + 0xa4]
mov edx, dword [esi + 0xa0]
mov eax, 4
xor edx, 0xd6cb5d6d
xor ecx, 0x63eb502c
or ecx, edx
mov ecx, ebx
jne 0x4e5d7f
mov ecx, dword [ecx]
mov eax, dword [ebx + eax]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], eax
mov eax, dword [0x5c301c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
movzx eax, byte [eax + 0x6c]
cmp eax, 1
je 0x4e5d41
test eax, eax
jne 0x4e5df4
mov byte [esi + 1], 1
mov edx, 0x4cc0f0
mov eax, dword [0x5c301c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
lea ecx, [eax + 0x68]
call fcn.004cc130
mov eax, dword [0x5c301c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov byte [eax + 0x6c], 1
mov eax, dword [0x5c301c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 0x68]
test ecx, ecx
jne 0x4e5d78
mov byte [esi + 1], 1
call fcn.005286a0
mov eax, dword [0x5c301c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 0x68]
lock inc dword [ecx]
jg 0x4e5dec
ud2
mov eax, dword [edi + 0xc]
mov byte [esi + 1], 1
lea ecx, [esi + 0x88]
push ebx
push ecx
call eax
mov ebx, dword [esi + 0xc]
add esp, 8
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x8c]
xor eax, 0xcdabd9b2
xor ecx, 0x8f2d9662
or ecx, eax
mov eax, 0xc
mov ecx, 0x57e59c
jne 0x4e5cdf
mov edx, dword [esi + 0x94]
mov edi, dword [esi + 0x90]
xor edi, 0x7bde3a91
xor edx, 0xe9e58415
or edx, edi
jne 0x4e5cdf
lea ecx, [ebx + 4]
mov eax, 8
jmp 0x4e5cda
test ecx, ecx
jne 0x4e5f07
mov eax, 9
mov ecx, 0x57e5a8
mov dword [esi + 0xc], 0
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], eax
lea eax, [esi + 0x68]
xor edi, edi
mov dword [esi + 0x3c], eax
lea eax, [esi + 0x80]
mov dword [esi + 0x40], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x44], eax
lea eax, [esi + 0x1c]
mov dword [esi + 0x48], eax
movzx eax, byte [0x5c2f44]
test al, al
je 0x4e5e8c
mov byte [0x5c2f44], 1
mov eax, dword [0x5c301c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x40], 0
jne 0x4e5e76
mov dword [esi + 0xb8], 5
call fcn.004d7ac0
test eax, eax
mov edi, 0
jne 0x4e5e7c
mov eax, 1
mov cl, 1
mov dword [esi + 4], ecx
jmp 0x4e5e95
lea eax, [eax + 0x44]
mov edi, dword [eax]
mov dword [eax], 0
test edi, edi
jne 0x4e5f2c
mov dword [esi + 4], 0
xor eax, eax
mov dword [esi + 0x54], 0
mov byte [esi + 0x58], 0
mov dword [esi + 8], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], eax
mov byte [esi + 2], 1
mov dword [esi + 0xb8], 1
lea ecx, [esi + 0x3c]
lea edx, [esi + 0x54]
push 0x57e5dc
call fcn.004e4e10
add esp, 4
mov edi, dword [esi + 8]
xor ebx, ebx
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4e5ee0
lock dec dword [ecx]
jne 0x4e5ee0
call fcn.004cc2a0
mov ecx, dword [esi + 4]
test edi, edi
sete al
or cl, bl
or cl, al
jne 0x4e5af1
lock dec dword [edi]
jne 0x4e5af1
mov ecx, edi
call fcn.004d7b70
jmp 0x4e5af1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x4e600c
cmp eax, 1
jne 0x4e601b
mov eax, ecx
mov ecx, dword [ecx + 0x14]
mov eax, dword [eax + 0x18]
dec eax
jmp 0x4e5e05
mov cl, 1
xor eax, eax
lea ebx, [edi + 8]
lock cmpxchg byte [edi + 8], cl
je 0x4e5f41
mov ecx, ebx
call fcn.00528990
mov eax, dword [0x5c3014]
mov dword [esi + 4], ebx
test eax, 0x7fffffff
je 0x4e6052
call fcn.00528a30
xor al, 1
mov dword [esi + 0xb8], 4
mov dword [esi + 0x5c], eax
movzx eax, byte [edi + 9]
mov edx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xb8], 4
lea ecx, [esi + 0x3c]
add edx, 0xc
push 0x57e5b4
call fcn.004e4e10
add esp, 4
cmp byte [esi + 0x5c], 0
mov edi, dword [esi + 8]
jne 0x4e5fb0
mov eax, dword [0x5c3014]
test eax, 0x7fffffff
je 0x4e5fb0
call fcn.00528a30
test al, al
jne 0x4e5fb0
mov byte [edi + 9], 1
mov ecx, dword [esi + 4]
xor eax, eax
xchg byte [ecx], al
cmp al, 2
jne 0x4e5fc2
push ecx
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
mov byte [0x5c2f44], 1
mov eax, dword [0x5c301c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x40], 0
jne 0x4e602a
mov dword [esi + 0xb8], 3
call fcn.004d7ac0
mov edi, dword [esi + 8]
test eax, eax
jne 0x4e6030
lock dec dword [edi]
mov ecx, edi
je 0x4e603f
mov bl, 1
mov dword [esi + 4], 0
jmp 0x4e5ecf
mov eax, 4
mov ecx, str.main
jmp 0x4e5e05
mov eax, 9
mov ecx, 0x57e5a8
jmp 0x4e5e05
lea eax, [eax + 0x44]
mov ecx, dword [eax]
mov bl, 1
mov dword [eax], edi
test ecx, ecx
je 0x4e6046
lock dec dword [ecx]
jne 0x4e6046
call fcn.004d7b70
mov bl, 1
mov dword [esi + 4], 0
jmp 0x4e5ecf
mov dword [esi + 0x5c], 0
jmp 0x4e5f68
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], 0x57e6ec
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], ecx
mov byte [esi + 0x34], ah
mov byte [esi + 0x35], al
lea eax, [esi + 0x24]
mov dword [esi + 0x3c], 0x57e730
mov dword [esi + 0x40], 2
mov dword [esi + 0x4c], 0
lea ecx, [esi + 0x54]
lea edx, [esi + 0x14]
mov dword [esi + 0x54], 0
mov byte [esi + 0x58], 0
mov dword [esi + 0x68], eax
lea eax, [esi + 0x68]
mov dword [esi + 0x6c], 0x42e3e0
mov dword [esi + 0x44], eax
lea eax, [esi + 0x3c]
mov dword [esi + 0x48], 1
push eax
push ecx
push edx
call fcn.004cc340
add esp, 0xc
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
jmp 0x4e617d
test edx, edx
je 0x4e60fc
mov ebx, dword [edx + 4]
mov edi, dword [edx + 0xc]
cmp ebx, 1
je 0x4e60f4
test ebx, ebx
jne 0x4e60fc
test edi, edi
jne 0x4e60fc
mov edx, 1
xor edi, edi
jmp 0x4e6192
test edi, edi
je 0x4e618b
xor edx, edx
mov dword [esi + 0x80], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x68], 1
mov dword [esi + 0x6c], 0x57e6ec
mov dword [esi + 0x70], edx
mov dword [esi + 0x74], ecx
mov byte [esi + 0x78], ah
mov byte [esi + 0x79], al
lea eax, [esi + 0x68]
mov dword [esi + 0x3c], 0x57e774
mov dword [esi + 0x40], 2
mov dword [esi + 0x4c], 0
lea ecx, [esi + 0x1c]
lea edx, [esi + 0x54]
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x14], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x18], 0x42e3e0
mov dword [esi + 0x44], eax
lea eax, [esi + 0x3c]
mov dword [esi + 0x48], 1
push eax
push ecx
push edx
call fcn.004cc340
add esp, 0xc
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x58]
call fcn.004cc470
mov ecx, 7
int 0x29
ud2
mov edi, dword [edx]
mov edx, dword [edi]
mov edi, dword [edi + 4]
mov dword [esi + 0x80], edx
lea edx, [esi + 0x80]
mov dword [esi + 0x84], edi
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], 1
mov dword [esi + 0x2c], 4
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
lea edx, [esi + 0x24]
jmp 0x4e610f