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

Disassembly:
sub esp, 0xf4
mov eax, dword [0x342226fc]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push ebp
mov ebp, dword [esp + 0x100]
push esi
mov esi, dword [esp + 0x108]
xor ebx, ebx
push edi
mov eax, 0xff
mov edi, ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 8
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebx
call fcn.341f3793
test byte [esi], 8
jne 0x3429be0d
lea ebx, [edi + 0x68]
push ebx
mov dword [esp + 0x7c], edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
push esi
push 1
mov ecx, edi
call fcn.341f404c
test byte [esi], 8
jne 0x341f3e7e
push esi
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x50]
push edx
mov ecx, eax
call fcn.341f461f
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
test byte [esi], 8
jne 0x342637a1
push 1
lea ecx, [esp + 0x4c]
call fcn.341f484f
mov ecx, dword [edi + 0x54]
mov eax, dword [edi + 0x48]
mov edx, dword [edi + 0xdc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
mov ax, word [edi + 0xe0]
push 2
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x48], edx
mov word [esp + 0x4c], ax
call fcn.341f4870
lea ecx, [esp + 0x98]
mov dword [esp + 0x38], eax
call fcn.341f38d4
mov edx, dword [esp + 0x38]
push edx
push esi
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0xa4]
call fcn.341f4aa8
lea ecx, [esp + 0x98]
mov dword [esp + 0x3c], eax
call fcn.341f4fb6
test byte [esi], 8
jne 0x342637a1
lea ecx, [esp + 0x70]
push ecx
push esi
xor ebx, ebx
push ebx
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.341f505e
test byte [esi], 8
jne 0x342637a1
mov eax, dword [edi + 0x3dc]
push esi
push eax
push ebp
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x20]
call fcn.341f50af
mov dword [edi + 0xa0], eax
test byte [esi], 8
jne 0x342637a1
push 1
lea ecx, [esp + 0x14]
call fcn.341f54ed
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edx
mov dword [edi + 0xa4], eax
call fcn.341f4fa3
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push eax
call fcn.341f4fa3
push esi
push 1
lea ecx, [esp + 0x78]
call fcn.341f5655
test byte [esi], 8
jne 0x342637a1
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [edi + 0xf0]
push edx
lea ecx, [edi + 0x118]
call fcn.341f5901
cmp dword [edi + 0x48], 1
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x180], eax
jne 0x341f8b64
test byte [esi], 8
jne 0x341f3fcf
lea eax, [edi + 0x190]
push eax
lea ecx, [esp + 0x14]
call fcn.341f5917
add edi, 0x1a8
push edi
push 0x100
lea ecx, [esp + 0x18]
call fcn.341f59bc
xor ebx, ebx
test byte [esi], 8
jne 0x3429be0d
push esi
push 1
lea ecx, [esp + 0x78]
call fcn.341f5655
test byte [esi], 8
jne 0x3429be0d
lea ecx, [esp + 0x70]
call fcn.341f5a78
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x341f401f
add eax, 0x4c
or ecx, 0xffffffff
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
cmp eax, ebx
pop ebx
je 0x341f4035
add eax, 0x4c
or edx, 0xffffffff
lock xadd dword [eax], edx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.341f1b18
add esp, 0xf4
ret 8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], edi
call fcn.341f8b8a
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
xor ebp, ebp
lea ebx, [edi + 0x190]
jmp 0x341f8c35
test byte [esi], 8
jne 0x341f8caf
cmp ebp, dword [esp + 0x28]
jae 0x34263796
mov edx, dword [edi]
mov eax, dword [edx + 4]
push esi
push 0
mov ecx, edi
call eax
mov dword [ebx], eax
test byte [esi], 8
jne 0x341f8ca4
lea ecx, [esp + 0x70]
push ecx
push esi
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, edi
call fcn.341f505e
test byte [esi], 8
jne 0x341f8ca4
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x20]
push 0x53
push eax
lea ecx, [esp + 0x6c]
call fcn.341f92e2
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.341f4fa3
lea ecx, [esp + 0x64]
call fcn.341f9348
add ebp, 1
add ebx, 4
cmp ebp, 6
jb 0x341f8c35
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x341f3fba
add eax, 0x4c
or edx, 0xffffffff
lock xadd dword [eax], edx
jmp 0x341f3fba
mov dword [ebx], 0
jmp 0x341f8ca4
xor ebx, ebx
jmp 0x341f3ffb
push esi
push 1
lea ecx, [esp + 0x78]
call fcn.3424668c
jmp 0x341f4004