Function at 0x404dc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
lea eax, [esi + 0x50]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x40a4b0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0x25
mov ecx, dword [edi + 4]
bt ecx, 9
jb 0x404f80
lea eax, [esi + 0x15]
mov bl, byte [edx]
test bl, bl
je 0x404e29
inc edx
mov byte [eax], bl
inc eax
mov bl, byte [edx]
inc edx
test bl, bl
jne 0x404e1f
mov edx, ecx
and edx, 0x4a
cmp edx, 8
je 0x404f67
cmp edx, 0x40
je 0x404ff3
mov dword [esi + 0x58], 0xffffffff
mov cl, 0x75
mov dword [esi + 4], esp
mov byte [eax], cl
xor ecx, ecx
dec ecx
lea ebx, [esi + 0x20]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov byte [ebx + 0xc], 0xff
push eax
sub esp, 0x18
mov edi, esp
lea eax, [edi + 8]
mov dword [esi + 0x58], ecx
push eax
call fcn.0040c7d0
add esp, 4
mov dword [edi], ebx
mov dword [edi + 4], 0xd
lea eax, [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x18], eax
call fcn.0040be10
add esp, 0x1c
mov esp, dword [esi + 4]
lea edi, [esi + eax]
add edi, 0x20
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + 4]
mov edx, ecx
and dl, 0xb0
mov dword [esi + 4], edi
cmp dl, 0x20
je 0x404ec3
mov edx, ebx
and ecx, 0xb0
cmp ecx, 0x10
je 0x404f8c
mov ebx, edx
mov edi, edx
mov dword [esi + 0x1c], edi
lea edi, [esi + 0x30]
xor eax, eax
dec eax
mov dword [edi + 0x13], eax
mov dword [edi + 0xf], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [edi], xmm0
lea ecx, [esi + 0x10]
mov dword [ecx], eax
lea ecx, [esi + 0xc]
mov dword [ecx], eax
lea eax, [esi + 8]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040c0b0
mov dword [esi + 0x58], 0
lea eax, [esi + 8]
push eax
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 0x10]
push eax
push edi
push dword [esi + 4]
push dword [esi + 0x1c]
push ebx
call fcn.00405b00
add esp, 0x1c
mov ebx, dword [esi + 8]
xor eax, eax
dec eax
lock xadd dword [ebx + 4], eax
mov edi, dword [ebp + 8]
mov dl, byte [ebp + 0x14]
test eax, eax
je 0x404fd1
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x58], 0xffffffff
movsx edx, dl
push edx
push dword [ebp + 0x10]
push eax
push ecx
lea eax, [esi + 0x30]
push eax
push dword [ebp + 0xc]
push edi
call fcn.00438dd0
add esp, 0x1c
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
bt ecx, 0xe
setae cl
shl cl, 5
or cl, 0x58
mov dword [esi + 0x58], 0xffffffff
jmp 0x404e49
lea eax, [esi + 0x16]
mov byte [eax - 1], 0x23
jmp 0x404e18
lea ecx, [esi + 0x21]
mov edi, ecx
movzx ecx, byte [ecx - 1]
cmp ecx, 0x2b
je 0x404fca
cmp ecx, 0x2d
mov ebx, edx
je 0x404ec3
cmp eax, 2
jl 0x404ebf
cmp cl, 0x30
jne 0x404ebf
movzx eax, byte [esi + 0x21]
or eax, 0x20
cmp eax, 0x78
jne 0x404ebf
lea edi, [esi + 0x22]
mov ebx, edx
jmp 0x404ec3
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov dword [esi + 0x58], 0xffffffff
call dword [section..00cfg]
mov ecx, ebx
call dword [esi + 4]
mov dl, byte [ebp + 0x14]
jmp 0x404f2c
mov cl, 0x6f
jmp 0x404e49