Function at 0x409030
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fdeac
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x55ec40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea edi, [esi + 0x10]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
lea ecx, [esi + 0x38]
mov dword [esi + 0x30], 0
mov byte [esi + 0x34], 0
mov dword [ebp - 0x2c], ecx
mov dword [ecx + 0x24], 0
mov edx, dword [ebp + 0x30]
mov byte [ebp - 4], 4
test edx, edx
je 0x4090ec
mov eax, dword [edx]
push ecx
mov ecx, edx
mov eax, dword [eax]
call eax
mov dword [esi + 0x5c], eax
mov al, byte [ebp + 0x34]
lea ecx, [esi + 0x70]
mov byte [esi + 0x60], al
push 9
mov byte [ebp - 4], 5
mov byte [esi + 0x68], 9
call fcn.00409990
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x68], 1
jne 0x40912d
cmp dword [esi + 0x70], 0
jne 0x40912d
push 0x45b2
push 0x504688
push 0x504808
call fcn.004df729
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp byte [eax + 0x68], 2
jne 0x409153
cmp dword [esi + 0x70], 0
jne 0x409153
push 0x45b3
push 0x504688
push str.m_type___value_t::array__m_value.array___nullptr
call fcn.004df729
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp byte [eax + 0x68], 3
jne 0x409179
cmp dword [esi + 0x70], 0
jne 0x409179
push 0x45b4
push 0x504688
push str.m_type___value_t::string__m_value.string___nullptr
call fcn.004df729
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp byte [eax + 0x68], 8
jne 0x40919c
cmp dword [esi + 0x70], 0
jne 0x40919c
push 0x45b5
push 0x504688
push str.m_type___value_t::binary__m_value.binary___nullptr
call fcn.004df729
add esp, 0xc
mov edx, dword [edi + 0xc]
xor esi, esi
mov ecx, dword [edi]
mov byte [ebp - 4], 6
mov byte [ebp - 0x19], 1
test edx, edx
jns 0x4091cd
mov eax, edx
neg eax
cmp esi, eax
jae 0x4091cd
add edx, esi
mov esi, ecx
mov eax, edx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub esi, eax
jmp 0x4091d7
add edx, esi
mov eax, edx
shr eax, 5
lea esi, [ecx + eax*4]
sub esi, ecx
and edx, 0x1f
mov ecx, dword [edi + 0xc]
mov eax, closesocket
sar esi, 2
sub eax, ecx
shl esi, 5
add esi, edx
mov dword [ebp - 0x2c], esi
cmp eax, 1
jb 0x409412
mov edx, dword [edi + 4]
add ecx, 0x20
mov eax, dword [edi]
sub edx, eax
shr ecx, 5
sar edx, 2
mov dword [ebp - 0x14], 0
cmp ecx, edx
jae 0x40921a
lea eax, [eax + ecx*4]
jmp 0x409246
jbe 0x409249
mov eax, dword [edi + 8]
sub eax, dword [edi]
sar eax, 2
cmp ecx, eax
lea eax, [ebp - 0x14]
jbe 0x409236
push eax
push ecx
mov ecx, edi
call fcn.00403040
jmp 0x409249
push edi
push eax
sub ecx, edx
push ecx
push dword [edi + 4]
call fcn.00403230
add esp, 0x10
mov dword [edi + 4], eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x40925e
lea eax, [edi + 1]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x1c], eax
jmp 0x40939a
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov esi, dword [eax + 0x10]
mov dword [ebp - 0x20], esi
test edi, edi
jns 0x40928b
mov eax, edi
neg eax
cmp ecx, eax
jae 0x40928b
mov ecx, edi
mov edx, esi
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x409295
add ecx, edi
mov eax, ecx
shr eax, 5
lea edx, [esi + eax*4]
mov eax, dword [ebp - 0x10]
inc edi
and ecx, 0x1f
mov dword [ebp - 0x24], edx
mov dword [eax + 0x1c], edi
xor eax, eax
mov dword [ebp - 0x14], eax
test edi, edi
jns 0x4092cf
mov eax, edi
neg eax
cmp dword [ebp - 0x14], eax
jae 0x4092cd
xor eax, eax
mov eax, edi
mov edi, esi
mov dword [ebp - 0x14], eax
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edi, eax
jmp 0x4092da
xor eax, eax
add eax, edi
mov dword [ebp - 0x14], eax
shr eax, 5
lea edi, [esi + eax*4]
mov eax, dword [ebp - 0x2c]
mov esi, 0x1f
and esi, dword [ebp - 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], 0
test eax, eax
jns 0x409318
neg eax
cmp dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
jae 0x409318
xor edx, edx
add eax, edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub dword [ebp - 0x20], eax
jmp 0x40932e
xor edi, edi
add eax, edi
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
shr eax, 5
lea edi, [edi + eax*4]
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
and eax, 0x1f
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x20], edx
jne 0x409340
cmp eax, ecx
je 0x409394
test ecx, ecx
je 0x409347
dec ecx
jmp 0x409352
sub edx, 4
mov ecx, 0x1f
mov dword [ebp - 0x24], edx
test esi, esi
je 0x409359
dec esi
jmp 0x409364
sub edi, 4
mov esi, 0x1f
mov dword [ebp - 0x28], edi
mov edx, dword [edi]
mov eax, 1
mov edi, dword [ebp - 0x24]
shl eax, cl
test dword [edi], eax
je 0x409384
mov edi, dword [ebp - 0x28]
bts edx, esi
mov dword [edi], edx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
jmp 0x409337
mov edi, dword [ebp - 0x28]
btr edx, esi
mov dword [edi], edx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
jmp 0x409337
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
mov edx, dword [edi + 0x10]
xor eax, eax
mov ecx, eax
test esi, esi
jns 0x4093c4
mov eax, esi
neg eax
cmp ecx, eax
jae 0x4093c4
xor eax, eax
lea ecx, [eax + esi]
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x4093ce
add ecx, esi
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
lea eax, [ebp - 0x19]
and ecx, 0x1f
push eax
push 1
push ecx
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00404850
mov ecx, dword [ebp + 0x30]
add esp, 0x14
test ecx, ecx
je 0x4093fd
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x30
call fcn.0040df70
int3