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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, ecx
mov ecx, dword [ecx + 0x98]
test ecx, ecx
je 0x402e2c
call fcn.004c0894
mov eax, dword [esi + 0x9c]
lea ecx, [eax + 1]
cmp ecx, 2
jae 0x4030f4
mov eax, dword [esi + 0x90]
test eax, eax
je 0x402e5e
lock dec dword [eax]
jne 0x402e5e
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 0x94]
call fcn.004561a1
mov eax, dword [esi + 0x88]
lock inc dword [eax + 8]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x402ea0
mov edi, dword [esi + 0x34]
lea eax, [esi + 0x3c]
mov dword [esp], eax
dec edi
mov dword [esi + 0x34], edi
mov ebx, dword [ecx + 0x28]
add ecx, 0xfffffff8
lea eax, [ebx + 0x2c]
test ebx, ebx
mov dword [esi + 0x38], ebx
cmove eax, dword [esp]
mov dword [eax], 0
call fcn.004bb521
dec edi
test ebx, ebx
mov ecx, ebx
jne 0x402e79
mov eax, dword [esi + 0x30]
lock dec dword [eax]
jne 0x402eb0
mov ecx, dword [esi + 0x30]
call fcn.004bb414
mov eax, dword [esi + 0x88]
lock dec dword [eax]
jne 0x402ec6
mov ecx, dword [esi + 0x88]
call fcn.0045604e
mov eax, dword [esi + 0x7c]
xor ecx, ecx
lea edi, [esp + 0x18]
inc ecx
xchg dword [eax + 0x34], ecx
mov dword [edi], ecx
mov ecx, edi
call fcn.004c4a3a
xor eax, eax
lea ebx, [esi + 0x48]
mov dword [esp + 8], esi
dec eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], eax
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea edi, [esp + 0x40]
mov ecx, ebx
lea edx, [esp + 0x18]
call fcn.004bb972
test eax, eax
je 0x402f24
mov ecx, eax
mov esi, eax
mov dword [esp + 0x40], eax
add ecx, 0x40
call fcn.004c4a84
lock dec dword [esi]
jne 0x402ef7
mov ecx, edi
call fcn.004c48c1
jmp 0x402ef7
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x7c]
lock dec dword [eax]
jne 0x402f38
mov ecx, dword [esi + 0x7c]
call fcn.004c49eb
mov eax, dword [esi + 0x58]
test eax, eax
mov dword [esp + 4], eax
je 0x402f7c
mov eax, dword [esp + 8]
xor esi, esi
mov edi, dword [eax + 0x50]
mov ebx, 0x40
mov dword [esp], edi
mov eax, dword [edi]
test eax, eax
je 0x402f66
lock dec dword [eax]
jne 0x402f66
mov ecx, edi
call fcn.004c48c1
add edi, 4
dec ebx
jne 0x402f54
mov edi, dword [esp]
inc esi
add edi, 0x110
cmp esi, dword [esp + 4]
jne 0x402f4c
mov edi, dword [esp + 8]
cmp dword [edi + 0x54], 0
je 0x402f96
push dword [edi + 0x50]
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
cmp dword [edi + 0x64], 0
je 0x402fac
push dword [edi + 0x60]
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
cmp dword [edi + 0x6c], 0
je 0x402fc2
push dword [edi + 0x68]
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
mov eax, dword [edi + 0x74]
lock dec dword [eax]
jne 0x402fd2
mov ecx, dword [edi + 0x74]
call fcn.004be8cc
mov ecx, dword [edi + 0x78]
call fcn.0046f3f4
mov ecx, dword [edi + 0x78]
call fcn.0046eb9f
mov eax, dword [edi + 0x40]
test eax, eax
je 0x402ff9
lock dec dword [eax]
jne 0x402ff9
mov ecx, dword [edi + 0x40]
mov edx, dword [edi + 0x44]
call fcn.004561a1
mov eax, dword [edi]
test eax, eax
je 0x403074
cmp eax, 1
jne 0x403111
mov ebx, dword [edi + 4]
lock dec dword [ebx + 0xc0]
jne 0x4031f3
lock bts dword [ebx + 0x40], 0
jb 0x403162
lea esi, [ebx + 0x80]
push esi
call sub.kernel32.dll_AcquireSRWLockExclusive
mov eax, dword [0x5c91e0]
test eax, 0x7fffffff
jne 0x403652
mov dword [esp], 0
mov al, byte [ebx + 0x84]
test al, al
jne 0x40367f
lea ecx, [ebx + 0x88]
call fcn.004bc38e
cmp dword [ebx + 0x90], 0
je 0x403147
xor eax, eax
jmp 0x403151
mov esi, dword [edi + 4]
lock dec dword [esi + 0x100]
jne 0x4031f3
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x88]
mov edx, eax
or edx, ecx
lock cmpxchg dword [esi + 0x40], edx
jne 0x40308d
test dword [esi + 0x88], eax
jne 0x4031a4
lea ebx, [esi + 0xb0]
push ebx
call sub.kernel32.dll_AcquireSRWLockExclusive
mov eax, dword [0x5c91e0]
test eax, 0x7fffffff
jne 0x403661
mov dword [esp], 0
mov al, byte [esi + 0xb4]
test al, al
jne 0x403685
lea ecx, [esi + 0xb8]
call fcn.004bc38e
cmp dword [esi + 0xc0], 0
je 0x403189
xor eax, eax
jmp 0x403193
lock dec dword [eax + 4]
jne 0x402e3e
push eax
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
jmp 0x402e3e
mov esi, dword [edi + 4]
lock dec dword [esi]
jne 0x4031f3
lea ecx, [esi + 8]
call fcn.004bc442
mov al, 1
xchg byte [esi + 0x44], al
test al, al
je 0x4031f3
lea ecx, [esi + 0x10]
call fcn.00402c01
lea ecx, [esi + 0x28]
call fcn.00402c01
jmp 0x4031e5
cmp dword [ebx + 0x9c], 0
sete al
xchg byte [ebx + 0xa0], al
mov ecx, esi
movzx edx, byte [esp]
call fcn.004bee2a
mov al, 1
xchg byte [ebx + 0xc8], al
test al, al
je 0x4031f3
mov ecx, ebx
call fcn.004bcb2e
lea ecx, [ebx + 0x88]
call fcn.00402c01
mov esi, dword [ebx - 4]
jmp 0x4031e5
cmp dword [esi + 0xcc], 0
sete al
xchg byte [esi + 0xd0], al
mov ecx, ebx
movzx edx, byte [esp]
call fcn.004bee2a
mov al, 1
xchg byte [esi + 0x108], al
test al, al
je 0x4031f3
cmp dword [esi + 0xd8], 0
je 0x4031cc
push dword [esi + 0xd4]
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
lea ecx, [esi + 0x94]
call fcn.00402c01
lea ecx, [esi + 0xb8]
call fcn.00402c01
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
mov eax, dword [edi + 0x20]
lock dec dword [eax]
jne 0x403203
mov ecx, dword [edi + 0x20]
call fcn.0045604e
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
call dword [eax + 0x20]
add esp, 4
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4032f4
cmp eax, 1
jne 0x40343a
mov esi, dword [edi + 0x2c]
lock dec dword [esi + 0xc4]
jne 0x40364a
lock bts dword [esi + 0x40], 0
jb 0x4034e6
mov dword [esp], esi
add esi, 0x40
xor ebx, ebx
mov ecx, 1
mov edx, dword [esi]
mov eax, edx
not eax
test al, 0x3e
jne 0x40328d
xor edi, edi
xor ebx, ebx
mov dword [esp + 4], esi
cmp ebx, 7
jae 0x403270
test ebx, ebx
je 0x40327d
mov eax, edi
pause
dec eax
jne 0x403269
jmp 0x40327d
mov esi, ecx
call sub.kernel32.dll_SwitchToThread
mov ecx, esi
mov esi, dword [esp + 4]
mov edx, dword [esi]
add edi, ecx
inc ebx
add ecx, 2
mov eax, edx
not eax
test al, 0x3e
je 0x40325e
mov eax, dword [esp]
shr edx, 1
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 4], edx
mov dword [esp + 0xc], esi
shr esi, 1
cmp esi, edx
je 0x4032e1
test ecx, ecx
jne 0x4032e1
mov edx, ebx
lea edi, [ebx + ebx + 1]
imul edx, ebx
cmp ebx, 7
jae 0x4032c4
test ebx, ebx
je 0x4032d1
mov eax, edx
pause
dec eax
jne 0x4032bd
jmp 0x4032d1
mov dword [esp + 8], edx
call sub.kernel32.dll_SwitchToThread
mov edx, dword [esp + 8]
mov eax, dword [esp]
add edx, edi
inc ebx
add edi, 2
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4032b2
cmp esi, dword [esp + 4]
jne 0x403471
mov ebx, dword [esp + 0xc]
jmp 0x4034c5
mov esi, dword [edi + 0x2c]
lock dec dword [esi + 0x104]
jne 0x40364a
mov ebx, dword [esi + 0x40]
mov ecx, dword [esi + 0x88]
mov edx, ebx
mov eax, ebx
or edx, ecx
lock cmpxchg dword [esi + 0x40], edx
mov ebx, eax
jne 0x40330d
mov eax, dword [esi + 0x88]
mov dword [esp + 0x10], esi
test eax, ebx
jne 0x40352b
lea edi, [esi + 0x8c]
push edi
call sub.kernel32.dll_AcquireSRWLockExclusive
mov eax, dword [0x5c91e0]
test eax, 0x7fffffff
jne 0x403670
mov dword [esp], 0
mov al, byte [esi + 0x90]
test al, al
jne 0x4036a6
mov eax, dword [esi + 0x9c]
mov dword [esp + 4], edi
test eax, eax
je 0x4033a7
mov ecx, dword [esp + 0x10]
shl eax, 2
mov edx, 2
lea edi, [eax + eax*2]
mov esi, dword [ecx + 0x94]
mov ecx, dword [esi]
xor eax, eax
lock cmpxchg dword [ecx + 0xc], edx
jne 0x40339f
mov eax, dword [esi]
mov ecx, dword [eax + 8]
add ecx, 0x18
call fcn.004b9910
mov edx, 2
add esi, 0xc
add edi, 0xfffffff4
jne 0x403382
mov esi, dword [esp + 0x10]
xor edx, edx
mov ecx, dword [esi + 0xa8]
mov eax, dword [esi + 0xa0]
mov dword [esi + 0xa8], edx
lea edi, [esi + 0xa0]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
lea edx, [ecx + ecx*2]
test ecx, ecx
mov dword [esp + 0x18], eax
lea edx, [eax + edx*4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edi
je 0x40341d
lea ecx, [eax + 0xc]
mov dword [esp + 0x18], ecx
mov edi, dword [eax]
test edi, edi
je 0x40341d
mov ecx, dword [eax + 4]
xor eax, eax
lock cmpxchg dword [edi + 0xc], ecx
jne 0x403407
mov ecx, dword [edi + 8]
add ecx, 0x18
call fcn.004b9910
lock dec dword [edi]
jne 0x403413
mov ecx, edi
call fcn.004c447f
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
jne 0x4033e3
lea ecx, [esp + 0x18]
call fcn.004bc0e6
cmp dword [esi + 0x9c], 0
je 0x403508
xor eax, eax
jmp 0x403512
mov esi, dword [edi + 0x2c]
lock dec dword [esi + 4]
jne 0x40364a
lea ecx, [esi + 8]
call fcn.004bc442
mov al, 1
xchg byte [esi + 0x44], al
test al, al
je 0x40364a
lea ecx, [esi + 0x10]
call fcn.00402c01
lea ecx, [esi + 0x28]
call fcn.00402c01
jmp 0x40363c
mov ebx, dword [esp + 0xc]
and esi, 0x1f
cmp esi, 0x1f
jne 0x403498
mov edi, ecx
call fcn.004bc0a1
mov esi, dword [edi]
push edi
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
mov ecx, esi
jmp 0x4034b8
lea eax, [esi + esi*2]
mov esi, ebx
mov edi, ecx
lea ebx, [ecx + eax*4 + 4]
mov ecx, ebx
call fcn.004bc05a
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov ebx, esi
call fcn.00534cdb
mov ecx, edi
add ebx, 2
mov esi, ebx
shr esi, 1
cmp esi, dword [esp + 4]
jne 0x403475
test ecx, ecx
je 0x4034d7
push ecx
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
mov esi, dword [esp]
and ebx, 0xfffffffe
mov dword [esi + 4], 0
mov dword [esi], ebx
mov al, 1
xchg byte [esi + 0xc8], al
test al, al
je 0x40364a
mov ecx, esi
call fcn.004bcb2e
lea ecx, [esi + 0x88]
jmp 0x403634
cmp dword [esi + 0xa8], 0
sete al
mov ecx, dword [esp + 4]
xchg byte [esi + 0xac], al
movzx edx, byte [esp]
call fcn.004bee2a
mov eax, dword [esi + 0x88]
mov ecx, dword [esi]
not eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
and ebx, eax
xor eax, eax
mov dword [esp + 0x3c], ebx
inc eax
mov dword [esp + 8], eax
mov ebx, ecx
mov edx, dword [esi + 0x88]
mov edi, dword [esi + 0xd4]
mov eax, esi
mov esi, ebx
dec edx
mov dword [esp], edi
and edx, ebx
xor ebx, ebx
lea ecx, [edx + edx*2]
sub ebx, dword [eax + 0x84]
mov edi, dword [edi + ecx*4 + 8]
mov dword [esp + 4], esi
inc esi
cmp esi, edi
jne 0x4035a7
inc edx
mov esi, eax
cmp edx, dword [eax + 0x80]
jb 0x403593
mov edi, dword [esp + 4]
and edi, ebx
add edi, dword [esi + 0x84]
mov eax, dword [esp]
lea eax, [eax + ecx*4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
call fcn.00534cdb
mov ebx, edi
jmp 0x40354e
mov ebx, dword [esp + 4]
cmp dword [esp + 0x3c], ebx
je 0x4035f7
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp edi, 7
jae 0x4035d3
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test edi, edi
je 0x4035e0
mov eax, edx
pause
dec eax
jne 0x4035cc
jmp 0x4035e0
call sub.kernel32.dll_SwitchToThread
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
add edx, ecx
inc edi
add ecx, 2
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
jmp 0x40354e
mov esi, dword [esp + 0x10]
mov al, 1
xchg byte [esi + 0x108], al
test al, al
je 0x40364a
cmp dword [esi + 0xd8], 0
je 0x403623
push dword [esi + 0xd4]
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
lea ecx, [esi + 0x94]
call fcn.00402c01
lea ecx, [esi + 0xb8]
call fcn.00402c01
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00487de0
xor al, 1
mov dword [esp], eax
jmp 0x403047
call fcn.00487de0
xor al, 1
mov dword [esp], eax
jmp 0x4030c7
call fcn.00487de0
xor al, 1
mov dword [esp], eax
jmp 0x403351
mov dword [esp + 0x18], esi
jmp 0x403689
mov dword [esp + 0x18], ebx
mov eax, dword [esp]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
mov byte [esp + 0x1c], al
push 0x56d584
push 0x56d5c8
jmp 0x4036c5
mov eax, dword [esp]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
mov dword [esp + 0x18], edi
mov byte [esp + 0x1c], al
push 0x56d584
push 0x542a8c
lea eax, [esp + 0x20]
push eax
call fcn.00447310
add esp, 0xc
ud2