Function at 0x503d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x664dfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
lea ebp, [esi + 4]
mov dword [esp + 0x20], 0
mov eax, ebp
mov dword [esi], 1
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, ebp
mov dword [eax + 0xc], edx
lea eax, [esp + 0x38]
push eax
call fcn.00493b10
mov ecx, dword [ebp + 8]
mov eax, dword [ebp]
cmp ecx, eax
jle 0x503d8c
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 4]
cmp edx, eax
jg 0x503dc0
mov ecx, dword [esp + 0x48]
mov dword [esi], 0
test ecx, ecx
mov dword [esp + 0x20], 0xffffffff
je 0x503f94
mov edx, dword [ecx + 0x24]
dec edx
mov eax, edx
mov dword [ecx + 0x24], edx
test eax, eax
jg 0x503f94
mov eax, dword [ecx]
push 1
jmp 0x503f92
mov ecx, dword [ebp]
mov eax, dword [esp + 0x38]
cmp ecx, eax
jne 0x503e48
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x40]
cmp edx, eax
jne 0x503e48
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jne 0x503e48
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x44]
cmp ecx, eax
jne 0x503e48
mov edi, dword [esp + 0x48]
test edi, edi
je 0x503df7
inc dword [edi + 0x24]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x503e19
mov ecx, dword [eax + 0x24]
dec ecx
mov dword [eax + 0x24], ecx
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 0x24]
test eax, eax
jg 0x503e19
test ecx, ecx
je 0x503e19
mov edx, dword [ecx]
push 1
call dword [edx]
test edi, edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x20], 0xffffffff
je 0x503f94
mov ecx, dword [edi + 0x24]
dec ecx
mov eax, ecx
mov dword [edi + 0x24], ecx
test eax, eax
jg 0x503f94
mov eax, dword [edi]
push 1
mov ecx, edi
jmp 0x503f92
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 4]
sub eax, edx
sub ebx, edi
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x503e7e
mov ecx, dword [eax + 0x24]
dec ecx
mov dword [eax + 0x24], ecx
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 0x24]
test eax, eax
jg 0x503e7e
test ecx, ecx
je 0x503e7e
mov edx, dword [ecx]
push 1
call dword [edx]
push 0x28
call fcn.00493aa0
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov byte [esp + 0x20], 1
je 0x503ec1
mov ecx, edi
call fcn.004c5740
mov eax, dword [esp + 0x28]
push 0
push 0
push 0x108
push ebx
push eax
mov ecx, edi
mov byte [esp + 0x34], 2
mov dword [edi], 0x68b838
call fcn.004c5780
jmp 0x503ec3
xor edi, edi
test edi, edi
mov byte [esp + 0x20], 0
mov dword [esi + 0x14], edi
jne 0x503ed7
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x503ee5
mov dword [edi + 0x24], 1
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x10]
mov ebx, dword [esp + 0x48]
cmp eax, edx
mov dword [esp + 0x28], eax
jge 0x503f73
jmp 0x503efd
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx]
mov dword [esp + 0x14], edx
call dword [eax + 4]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 8]
sub ecx, edx
mov edx, dword [ebx + 0x14]
imul ecx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [ebx]
add edi, ecx
mov ecx, ebx
mov dword [esp + 0x14], edx
call dword [eax + 4]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
sub ecx, edx
mov edx, dword [esi + 0xc]
imul ecx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [ebp]
cmp ecx, edx
jge 0x503f63
mov ebx, dword [esp + 0x38]
mov edx, ecx
sub edx, ebx
mov ebx, ecx
sub ebx, dword [ebp]
inc ecx
mov dl, byte [edx + eax]
mov byte [ebx + edi], dl
mov edx, dword [esi + 0xc]
cmp ecx, edx
jl 0x503f44
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x503ef9
test ebx, ebx
mov dword [esp + 0x20], 0xffffffff
je 0x503f94
mov ecx, dword [ebx + 0x24]
dec ecx
mov eax, ecx
mov dword [ebx + 0x24], ecx
test eax, eax
jg 0x503f94
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x24