Function at 0x5d236c
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1b2
push 0
push 0
dec ecx
jne 0x5d2375
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5d2cab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 8]
call fcn.00405278
mov eax, dword [ebp - 0xc]
call fcn.00405278
mov dword [ebp - 0x10], 0xffffffff
push 0
lea eax, [ebp - 0xd0c]
push eax
lea edx, [ebp - 0xd06]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004face0
cmp dword [ebp - 0xd0c], 0
sete byte [ebp - 0x4a]
cmp byte [ebp - 0x4a], 0
je 0x5d2c75
lea edx, [ebp - 0xd10]
mov eax, dword [ebp - 4]
call fcn.00580d30
mov ecx, dword [ebp - 0xd10]
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xd06]
call fcn.0050d9e4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jle 0x5d2415
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x5d2447
mov eax, dword [ebp - 4]
call fcn.0051f60c
cmp edx, 0
jne 0x5d2429
cmp eax, 0
ja 0x5d2447
jmp 0x5d242b
jg 0x5d2447
cmp dword [ebp + 8], 2
jne 0x5d2c75
mov eax, dword [ebp - 8]
mov edx, 0x5d2cc4
call fcn.004052cc
jmp 0x5d2c75
lea edx, [ebp - 0xd14]
mov eax, dword [ebp - 4]
call fcn.00581460
mov ecx, dword [ebp - 0xd14]
lea edx, [ebp - 0xd06]
mov eax, dword [ebp - 4]
call fcn.00507ab4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x5d2479
mov dword [ebp - 0x34], 0x64
mov eax, dword [ebp - 4]
lea eax, [eax + eax*2]
mov edx, dword [0x7d72dc]
cmp dword [edx + eax*8 + 0x10], 0
jne 0x5d24e1
lea edx, [ebp - 0xd18]
mov eax, dword [ebp - 4]
call fcn.00580fb0
mov eax, dword [ebp - 0xd18]
push eax
lea edx, [ebp - 0xd1c]
mov eax, dword [ebp - 4]
call fcn.005811dc
mov eax, dword [ebp - 0xd1c]
push eax
lea edx, [ebp - 0xd20]
mov eax, dword [ebp - 4]
call fcn.00580d30
mov eax, dword [ebp - 0xd20]
pop edx
pop ecx
call fcn.007b72a0
mov edx, dword [ebp - 4]
lea edx, [edx + edx*2]
mov ecx, dword [0x7d72dc]
mov dword [ecx + edx*8 + 0x10], eax
mov eax, dword [ebp - 4]
lea eax, [eax + eax*2]
mov edx, dword [0x7d72dc]
mov eax, dword [edx + eax*8 + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [0x7d6594]
mov edx, dword [ebp - 4]
cmp byte [eax + edx], 0
je 0x5d2552
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xd24]
imul edx, dword [ebp - 4], 0xac1
mov ecx, dword [0x7d65a0]
lea edx, [ecx + edx*8 + 0x3e4]
mov ecx, 0x2711
call fcn.004054f8
mov edx, dword [ebp - 0xd24]
xor ecx, ecx
mov eax, 0x5d2cd0
call fcn.004a0b54
cmp dword [ebp - 0x64], 0
je 0x5d2552
cmp dword [ebp - 0x28], 0xe10
jne 0x5d2552
mov dword [ebp - 0x28], 0x3c
mov eax, dword [ebp - 4]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x7d6aec]
cmp byte [edx + eax], 0
je 0x5d2586
mov eax, dword [ebp - 4]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x7d6aec]
cmp byte [edx + eax + 4], 0x17
jne 0x5d2586
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x28], 0xe10
jl 0x5d25d6
cmp dword [ebp - 0x30], 0
jl 0x5d25d6
lea edx, [ebp - 0xd2c]
mov eax, dword [ebp - 4]
call fcn.00580d30
mov eax, dword [ebp - 0xd2c]
lea edx, [ebp - 0xd28]
call fcn.0040a0f8
mov edx, dword [ebp - 0xd28]
mov eax, 0x5d2ce0
call fcn.0040588c
test eax, eax
jle 0x5d25cf
and dword [ebp - 0x30], 0xffff
and dword [ebp - 0x30], 0x1ffff
mov eax, dword [ebp - 0x30]
cdq
push edx
push eax
lea eax, [ebp - 0x4a]
push eax
lea eax, [ebp - 0x49]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea edx, [ebp - 0xd30]
mov eax, dword [ebp - 4]
call fcn.005811dc
mov eax, dword [ebp - 0xd30]
push eax
lea edx, [ebp - 0xd34]
mov eax, dword [ebp - 4]
call 0x56580d30
push ebp
cmp dword [eax + 4], ebx
jne 0x5d2c3e
cmp dword [eax + 0xc], ebx
je 0x5d2ce1
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.005d2699
or eax, 0x393bbfbe
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
cmp eax, ebx
lea edi, [ecx + esi]
jne 0x5d2c81
mov dword [ebp + 0x10], edi
jmp 0x5d2c86
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.005d2699
pop esp
pop edx
wait
inc edi
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x5d2ccf
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x5d2caa
and eax, 0xffff
push eax
jmp 0x5d2cae
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005d265e
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x5d2e88
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x5d2c8f
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x5d2c30
call fcn.005d2699
pop esp
push 0xffffffffffffffc5
xchg ebx, eax
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x5d2d4d
add eax, esi
cmp dword [eax], ebx
je 0x5d2d4d
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x5d2d48
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
lock add byte [eax], al
cmp edx, 0x3000
jne 0x5d2d32
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x5d2d3a
cmp edx, ebx
jne 0x5d2e88
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x5d2d09
add eax, dword [eax + 4]
jmp 0x5d2cf6
mov dword [ebp + 0xc], ebx
jmp 0x5d2d58
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x5d2d70
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x5d2d8e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x5d2dec
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x5d2dd3
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x5d2ddc
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x5d2de6
add ecx, eax
or byte [ecx], 4
inc eax
invalid