Function at 0x404140
Capabilities:
Access peb ldr_data

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 0x47aadb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 8
push esi
push edi
mov eax, dword [0x49a080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [esi + 0x10], 0
lea ecx, [esi + 0xc4]
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0xb8], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xc0], 0
mov dword [esi + 0xbc], 0
call fcn.004025a0
lea edi, [esi + 0x1bc]
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
mov dword [esi + 0x1c8], 0x7f7fffff
xorps xmm0, xmm0
mov dword [esi + 0x1cc], 0x7f7fffff
mov dword [esi + 0x1d0], 0xff7fffff
mov dword [esi + 0x1d4], 0xff7fffff
mov dword [esi + 0x1d8], 0x7f7fffff
mov dword [esi + 0x1dc], 0x7f7fffff
mov dword [esi + 0x1e0], 0xff7fffff
mov dword [esi + 0x1e4], 0xff7fffff
mov dword [esi + 0x1e8], 0x7f7fffff
mov dword [esi + 0x1ec], 0x7f7fffff
mov dword [esi + 0x1f0], 0xff7fffff
mov dword [esi + 0x1f4], 0xff7fffff
mov dword [esi + 0x1f8], 0x7f7fffff
mov dword [esi + 0x1fc], 0x7f7fffff
mov dword [esi + 0x200], 0xff7fffff
mov dword [esi + 0x204], 0xff7fffff
mov dword [esi + 0x208], 0x7f7fffff
mov dword [esi + 0x20c], 0x7f7fffff
mov dword [esi + 0x210], 0xff7fffff
mov dword [esi + 0x214], 0xff7fffff
mov dword [esi + 0x220], 0
mov dword [esi + 0x22c], 0
mov dword [esi + 0x228], 0
mov dword [esi + 0x224], 0
movups xmmword [esi + 0x230], xmm0
movups xmmword [esi + 0x240], xmm0
mov dword [esi + 0x254], 0
mov dword [esi + 0x250], 0
mov dword [esi + 0x258], 0
mov dword [esi + 0x260], 0
mov dword [esi + 0x25c], 0
mov dword [esi + 0x264], 0
mov eax, dword [ebx + 8]
lea ecx, [esi + 0x274]
add eax, 0x18c4
mov byte [ebp - 4], 3
push eax
call fcn.00401360
mov byte [ebp - 4], 4
lea eax, [esi + 0x304]
mov ecx, 2
nop dword [eax]
nop word [eax + eax]
mov dword [eax], 0x7f7fffff
lea eax, [eax + 0x10]
mov dword [eax - 0xc], 0x7f7fffff
mov dword [eax - 8], 0xff7fffff
mov dword [eax - 4], 0xff7fffff
sub ecx, 1
jne 0x4043e0
mov ecx, dword [ebx + 0xc]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404410
mov eax, dword [0x4b5f50]
sub ecx, edx
inc ecx
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x40442c
inc dword [eax + 0x394]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
push dword [ebp - 0x14]
push dword [ebx + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebx + 0xc]
add esp, 0xc
xor edx, edx
mov dword [esi], eax
push 0
call fcn.00402c90
mov dword [esi + 4], eax
add esp, 4
mov ecx, dword [edi]
mov eax, dword [edi + 4]
cmp ecx, eax
jne 0x404483
inc ecx
test eax, eax
je 0x404471
cdq
sub eax, edx
sar eax, 1
add eax, dword [edi + 4]
jmp 0x404476
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.00412e60
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov eax, dword [esi + 4]
mov dword [ecx + edx*4], eax
xor edx, edx
inc dword [edi]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
push dword [eax + ecx*4 - 4]
mov ecx, str.MOVE
call fcn.00402c90
mov ecx, dword [0x4b5f50]
add esp, 4
cmp dword [ecx + 0x19bc], eax
jne 0x404525
mov dword [ecx + 0x19c4], eax
cmp dword [ecx + 0x19c0], eax
jne 0x404534
mov byte [ecx + 0x19cf], 1
mov dword [esi + 0x4c], eax
lea ecx, [esi + 0x274]
xor eax, eax
mov dword [esi + 0x50], 0
mov word [esi + 0x80], ax
or eax, 0xffffffff
mov word [esi + 0x82], ax
mov word [esi + 0x84], ax
mov dword [esi + 0x90], eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0x218], eax
mov dword [esi + 0x26c], eax
mov eax, dword [esi]
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0x7f7fffff
mov dword [esi + 0x60], 0x7f7fffff
mov dword [esi + 0x64], 0x3f000000
mov dword [esi + 0x68], 0x3f000000
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov word [esi + 0x7c], 0
mov byte [esi + 0x7e], 0
mov dword [esi + 0x88], 0
mov byte [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xb0], 0xf
mov dword [esi + 0xac], 0xf
mov dword [esi + 0xa8], 0xf
mov dword [esi + 0xbc], 0x7f7fffff
mov dword [esi + 0xc0], 0x7f7fffff
mov dword [esi + 0xb4], 0x7f7fffff
mov dword [esi + 0xb8], 0x7f7fffff
mov dword [esi + 0x21c], 0
mov dword [esi + 0x268], 0x3f800000
mov dword [esi + 0x270], ecx
mov dword [ecx + 0x2c], eax
mov eax, esi
mov dword [esi + 0x2e8], 0
mov dword [esi + 0x2ec], 0
mov dword [esi + 0x2f0], 0
mov dword [esi + 0x2f4], 0
mov dword [esi + 0x300], 0
mov dword [esi + 0x2fc], 0
mov dword [esi + 0x314], 0x7f7fffff
mov dword [esi + 0x318], 0x7f7fffff
mov dword [esi + 0x31c], 0xff7fffff
mov dword [esi + 0x320], 0xff7fffff
movups xmm0, xmmword [esi + 0x314]
movups xmmword [esi + 0x304], xmm0
mov dword [esi + 0x2f8], 0
mov dword [esi + 0x328], 0xffffffff
mov dword [esi + 0x324], 0xffffffff
mov dword [esi + 0x330], closesocket
mov dword [esi + 0x32c], closesocket
mov dword [esi + 0x338], closesocket
mov dword [esi + 0x334], closesocket
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8