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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov esi, esp
mov dword [esi + 0x78], ebp
mov dword [esi + 0x7c], esp
mov dword [esi + 0x88], 0xffffffff
mov dword [esi + 0x84], 0x100ae5c0
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x80]
mov ecx, dword fs:[0]
mov dword [esi + 0x80], ecx
mov dword fs:[0], eax
cmp byte [ebx + 0x11], 0
je 0x100a7fa3
mov byte [esi + 2], 3
jmp 0x100a7fc9
mov eax, dword [0x101810c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0xb8], 1
jbe 0x100a7fc1
mov byte [esi + 2], 1
jmp 0x100a7fc9
call fcn.100a4580
mov byte [esi + 2], al
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
mov dword [esi + 0x34], eax
lea eax, [esi + 0x68]
push edi
push eax
call dword [ebx + 0xc]
add esp, 8
mov eax, 0xb98b1b71
mov ecx, 0x57a64178
xor eax, dword [esi + 0x6c]
xor ecx, dword [esi + 0x68]
or ecx, eax
jne 0x100a8010
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x74]
mov eax, 4
xor ecx, 0xd6cb5d6d
xor edx, 0x63eb502c
or edx, ecx
mov ecx, edi
je 0x100a8057
lea eax, [esi + 0x58]
push edi
push eax
call dword [ebx + 0xc]
add esp, 8
mov eax, 0xe31e0a51
mov ecx, 0xcb6e9fff
xor eax, dword [esi + 0x5c]
xor ecx, dword [esi + 0x58]
or ecx, eax
mov eax, 0xc
mov ecx, str.Box_dyn_Any__unnamed_
jne 0x100a805c
mov edx, dword [esi + 0x60]
mov ebx, dword [esi + 0x64]
xor edx, 0xda960c0f
xor ebx, 0x52b75a64
or ebx, edx
jne 0x100a805c
lea ecx, [edi + 4]
mov eax, 8
mov ecx, dword [ecx]
mov eax, dword [edi + eax]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov eax, dword [0x101810c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
movzx eax, byte [eax + 0xf4]
cmp eax, 1
je 0x100a80ab
test eax, eax
jne 0x100a80f1
mov eax, dword [0x101810c8]
mov ecx, dword fs:[0x2c]
mov edi, dword [ecx + eax*4]
lea eax, [edi + 0xf0]
push 0x100ae240
push eax
call fcn.100aba90
add esp, 8
mov byte [edi + 0xf4], 1
mov eax, dword [0x101810c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax + 0xf0]
test edx, edx
je 0x100a8348
lock inc dword [edx]
jle 0x100a8371
test edx, edx
je 0x100a80f1
mov dword [esi + 0xc], edx
mov eax, dword [edx + 0x10]
test eax, eax
je 0x100a829c
cmp eax, 1
jne 0x100a80fa
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x14]
dec eax
jmp 0x100a8104
mov dword [esi + 0xc], 0
xor edx, edx
mov eax, 9
mov ecx, 0x10159fb0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], eax
lea eax, [esi + 0x40]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x34]
mov dword [esi + 0x4c], eax
lea eax, [esi + 0x38]
mov dword [esi + 0x50], eax
lea eax, [esi + 2]
mov dword [esi + 0x54], eax
movzx eax, byte [0x10180fe8]
test al, al
je 0x100a8154
mov byte [0x10180fe8], 1
mov eax, dword [0x101810c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0xc0], 0
je 0x100a8175
lea eax, [eax + 0xc4]
jmp 0x100a8194
mov dword [esi + 4], edx
xor eax, eax
mov dword [esi + 0x10], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x14], 0
mov dword [esi + 0x88], 1
jmp 0x100a825f
xor ecx, ecx
mov dword [esi + 4], edx
mov dword [esi + 0x88], 0
call fcn.100ad780
mov edx, dword [esi + 4]
test eax, eax
je 0x100a82e2
mov ebx, dword [eax]
mov dword [eax], 0
lea eax, [esi + 0x14]
mov dword [esi + 0x10], 0
test ebx, ebx
mov dword [esi + 0x14], ebx
je 0x100a825c
mov dword [esi + 0x2c], eax
mov dword [esi + 0x24], ebx
mov cl, 1
xor eax, eax
lea edi, [ebx + 8]
lock cmpxchg byte [ebx + 8], cl
jne 0x100a8373
mov eax, dword [0x10181048]
mov dword [esi + 4], edi
test eax, 0x7fffffff
jne 0x100a838f
mov dword [esi + 0x20], 0
movzx eax, byte [ebx + 9]
mov dword [esi + 0x30], ebx
lea edx, [ebx + 0xc]
mov dword [esi + 0x88], 4
lea ecx, [esi + 0x48]
push 0x10159fbc
call fcn.100a8500
add esp, 4
cmp byte [esi + 0x20], 0
jne 0x100a821d
mov eax, dword [0x10181048]
test eax, 0x7fffffff
jne 0x100a83a8
mov ecx, dword [esi + 4]
xor eax, eax
xchg byte [ecx], al
cmp al, 2
jne 0x100a822f
push ecx
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
mov edx, dword [esi + 0x24]
mov byte [0x10180fe8], 1
mov dword [esi + 0x18], edx
mov eax, dword [0x101810c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0xc0], 0
je 0x100a82ab
lea eax, [eax + 0xc4]
jmp 0x100a82c6
mov dword [esi + 4], edx
mov dword [esi + 0x18], 0
mov byte [esi + 0x1c], 0
mov byte [esi + 3], 1
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x88], 1
lea ecx, [esi + 0x48]
lea edx, [esi + 0x18]
push 0x10159fe4
call fcn.100a8500
add esp, 4
mov eax, dword [esi + 4]
xor ebx, ebx
test eax, eax
jne 0x100a8302
jmp 0x100a830f
mov eax, 4
mov ecx, str.main
jmp 0x100a8104
xor ecx, ecx
mov dword [esi + 4], edx
mov dword [esi + 0x88], 3
call fcn.100ad780
mov edx, dword [esi + 4]
test eax, eax
je 0x100a82ec
mov ecx, dword [eax]
mov dword [eax], edx
test ecx, ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], 1
je 0x100a82f9
lock dec dword [ecx]
jne 0x100a82f9
lea ecx, [esi + 0x1c]
jmp 0x100a82f4
mov eax, 1
jmp 0x100a8159
lock dec dword [edx]
jne 0x100a82f9
lea ecx, [esi + 0x18]
call fcn.1009f370
mov eax, dword [esi + 0xc]
mov bl, 1
test eax, eax
je 0x100a830f
lock dec dword [eax]
jne 0x100a830f
lea ecx, [esi + 0xc]
call fcn.1009f330
cmp dword [esi + 0x10], 0
mov eax, dword [esi + 0x14]
setne cl
test eax, eax
sete dl
or cl, bl
or cl, dl
cmp cl, 1
je 0x100a8334
lock dec dword [eax]
jne 0x100a8334
mov ecx, dword [esi + 0x2c]
call fcn.1009f370
mov eax, dword [esi + 0x80]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x101810c8]
mov ecx, dword fs:[0x2c]
mov edi, dword [ecx + eax*4]
lea ecx, [edi + 0xf0]
call fcn.10112dd0
mov edx, dword [edi + 0xf0]
lock inc dword [edx]
jg 0x100a80d1
ud2
push edi
call fcn.101134d0
add esp, 4
mov eax, dword [0x10181048]
mov dword [esi + 4], edi
test eax, 0x7fffffff
je 0x100a81dc
call fcn.10113440
xor al, 1
mov dword [esi + 0x88], 4
mov dword [esi + 0x20], eax
jmp 0x100a81e3
call fcn.10113440
test al, al
jne 0x100a821d
mov eax, dword [esi + 0x30]
mov byte [eax + 9], 1
jmp 0x100a821d