Function at 0x4e1d20
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2a01
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x658
mov eax, dword [0x5e000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x654], edi
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x668], edi
mov dword [ebp - 0x65c], eax
mov eax, dword [ebx + 0xc]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [ebp - 0x658], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x660], edx
mov dword [ebp - 0x664], eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [edi + 0x20], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 7
mov word [edi + 0x20], cx
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x2c], ecx
mov dword [edi + 0x38], ecx
mov dword [ebp - 0x1c], ecx
mov ecx, edx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e1e10
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004039b0
push 0x100
lea ecx, [ebp - 0x24a]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44a]
push 0x100
push ecx
push 0x100
lea ecx, [ebp - 0x64a]
push ecx
push 3
lea ecx, [ebp - 0x650]
push ecx
push eax
call dword [0x5a66c4]
lea ecx, [ebp - 0x24a]
add esp, 0x24
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e1e80
sub ecx, edx
sar ecx, 1
jne 0x4e1f33
mov ecx, dword [ebp - 0x1c]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x4e2196
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 4
cmovae eax, dword [ebp - 0x2c]
push str..ws2
push ecx
push eax
push ecx
push dword [ebp - 0x668]
lea ecx, [ebp - 0x44]
call fcn.00403fa0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4e1f05
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e1efb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e2164
push edx
push ecx
call fcn.0052f847
add esp, 8
movups xmm0, xmmword [ebp - 0x44]
xor eax, eax
lea ecx, [ebp - 0x44]
mov word [ebp - 0x44], ax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
call fcn.00403950
mov esi, dword [ebp - 0x664]
push 0x3c
call fcn.0052f855
add esp, 4
mov ecx, eax
mov dword [ebp - 0x654], ecx
test esi, esi
jne 0x4e1fa3
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push 1
cmovae eax, dword [ebp - 0x2c]
push esi
push eax
push dword [ebp - 0x658]
call fcn.004cda00
mov esi, eax
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4e1f80
cmp dword [eax + 4], 0
jne 0x4e1fc7
push 1
mov ecx, esi
call fcn.00403130
push 0x3c
call fcn.0052f855
mov ecx, eax
add esp, 4
mov dword [ebp - 0x654], ecx
mov byte [ebp - 4], 4
push 0
jmp 0x4e1fa8
mov byte [ebp - 4], 5
push esi
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x658]
call fcn.004cda00
mov byte [ebp - 4], 2
mov esi, eax
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4e20a2
cmp dword [eax + 4], 0
je 0x4e20a2
mov eax, dword [esi + 0x34]
lea ecx, [edi + 0x14]
sub eax, 8
push eax
call fcn.00449ac0
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4e1ff7
mov ecx, dword [eax + 4]
jmp 0x4e1ff9
xor ecx, ecx
mov eax, dword [esi + 0x34]
sub eax, 8
push eax
push ecx
push dword [edi + 0x14]
call fcn.00582b4b
mov eax, dword [edi + 0x18]
add esp, 0xc
sub eax, dword [edi + 0x14]
push edi
push eax
push 0x583a90
push 2
push 1
call fcn.005951d7
add esp, 0x14
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x4e2031
mov ecx, dword [ecx + 4]
jmp 0x4e2033
xor ecx, ecx
mov eax, dword [esi + 0x34]
mov eax, dword [ecx + eax - 8]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4e2049
mov ecx, dword [eax + 4]
jmp 0x4e204b
xor ecx, ecx
mov eax, dword [esi + 0x34]
mov edx, dword [ebp - 0x660]
mov eax, dword [ecx + eax - 4]
mov ecx, edx
mov dword [edi + 8], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x654], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e2066
sub ecx, dword [ebp - 0x654]
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x20]
call fcn.004039b0
mov eax, dword [ebp - 0x65c]
test eax, eax
je 0x4e20a8
push dword [edi + 8]
mov ecx, eax
push dword [edi + 4]
push dword [ebp - 0x660]
call fcn.004c7d70
jmp 0x4e20a8
mov dword [edi], 0xffffffff
cmp dword [0x5e64fc], 0
je 0x4e20e3
push 0x10
call fcn.0052f855
add esp, 4
mov dword [ebp - 0x65c], eax
push dword [ebp - 0x664]
mov ecx, eax
mov byte [ebp - 4], 6
push 0
push dword [ebp - 0x660]
push dword [ebp - 0x658]
call fcn.00402b80
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x38]
mov dword [esi], vtable.MyBinaryRead.0
mov dword [ebp - 0x65c], eax
test eax, eax
je 0x4e2126
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4e2114
push ecx
call dword [0x5a66ec]
mov eax, dword [ebp - 0x65c]
add esp, 4
mov dword [eax + 4], 0
push 8
push eax
call fcn.0052f847
add esp, 8
mov dword [esi + 0x38], 0
mov ecx, esi
call fcn.004074c0
push 0x3c
push esi
call fcn.0052f847
mov edx, dword [ebp - 0x18]
add esp, 8
cmp edx, 8
jb 0x4e2174
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e216a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4e216a
call dword [0x5a67b8]
push edx
push ecx
call fcn.0052f847
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052f4c5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14
call fcn.00402970
int3