Function at 0x4134f0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499b6d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4ed800]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x18]
call fcn.004102b0
mov eax, 2
mov dword [ebp - 4], 0
push eax
mov word [0x4f2b08], 0xffff
mov dword [0x4f2b00], 0x4f2b0a
mov word [0x4f2b04], ax
call fcn.00414f40
mov ecx, dword [0x4f2b00]
movzx eax, byte [edi]
inc word [0x4f2b04]
mov byte [ecx], al
inc ecx
movzx eax, byte [edi + 4]
push eax
mov dword [0x4f2b00], ecx
call fcn.00414f40
movzx eax, byte [edi + 0xc]
push eax
call fcn.00414f40
movzx eax, byte [edi + 8]
push eax
call fcn.00414f40
movzx ecx, byte [edi + 0x18]
movzx eax, byte [edi + 0x17]
shl cx, 3
or cx, ax
movzx eax, byte [edi + 0x15]
shl cx, 2
or cx, ax
movzx eax, byte [edi + 0x14]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x13]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x12]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x16]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x11]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x10]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0xf]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0xe]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0xd]
shl cx, 2
or cx, ax
movzx esi, cx
push esi
call fcn.00414f40
shr esi, 8
push esi
call fcn.00414f40
movzx ecx, byte [edi + 0x29]
movzx eax, byte [edi + 0x28]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x27]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x26]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x24]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x23]
shl cx, 2
or cx, ax
movzx eax, byte [edi + 0x1f]
shl cx, 2
or cx, ax
movzx eax, byte [edi + 0x1e]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x1d]
shl cx, 2
or cx, ax
movzx eax, byte [edi + 0x1c]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x1b]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x1a]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x19]
add cx, cx
or cx, ax
movzx esi, cx
push esi
call fcn.00414f40
shr esi, 8
push esi
call fcn.00414f40
movzx ecx, byte [edi + 0x34]
movzx eax, byte [edi + 0x2f]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x2e]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x22]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x21]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x25]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x20]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x2d]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x2c]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x2b]
add cx, cx
or cx, ax
movzx eax, byte [edi + 0x2a]
add cx, cx
or cx, ax
movzx esi, cx
push esi
call fcn.00414f40
shr esi, 8
push esi
call fcn.00414f40
call fcn.00414ea0
movsd xmm0, qword [0x4a7b00]
add esp, 0x20
movsd qword [esp], xmm0
push 2
call fcn.00415040
mov edx, dword [0x4f2afc]
xor ecx, ecx
add esp, 0xc
movzx eax, byte [edx]
test al, al
setne cl
mov dword [edi + 0x38], ecx
lea ecx, [edx + 2]
movzx eax, byte [edx + 1]
mov dword [0x4f2afc], ecx
mov dword [edi + 0x30], eax
movzx eax, word [0x4f0f24]
sub ecx, 0x4f1af8
cmp ecx, eax
jne 0x4137a2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 1
test eax, eax
je 0x41379b
cmp byte [ebp - 0x14], 0
je 0x41379b
push eax
call fcn.0046c752
add esp, 4
call sub.KERNEL32.dll_SwitchToThread
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 1
call fcn.00415320
mov ecx, 0x4f0f18
call fcn.00432bb0
push str.Communication_error_on_USB_link__packet_size_is_wrong_
push 7
mov ecx, 0x4ed078
call fcn.00431760
push 0x4e3924
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xffffffff
push eax
call fcn.0046fc9f
int3