Function at 0x502640
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x65ff0b
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.004929f0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp]
cmp ecx, eax
jle 0x5026ac
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 4]
cmp edx, eax
jg 0x5026e0
mov ecx, dword [esp + 0x48]
mov dword [esi], 0
test ecx, ecx
mov dword [esp + 0x20], 0xffffffff
je 0x5028b4
mov edx, dword [ecx + 0x24]
dec edx
mov eax, edx
mov dword [ecx + 0x24], edx
test eax, eax
jg 0x5028b4
mov eax, dword [ecx]
push 1
jmp 0x5028b2
mov ecx, dword [ebp]
mov eax, dword [esp + 0x38]
cmp ecx, eax
jne 0x502768
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x40]
cmp edx, eax
jne 0x502768
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jne 0x502768
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x44]
cmp ecx, eax
jne 0x502768
mov edi, dword [esp + 0x48]
test edi, edi
je 0x502717
inc dword [edi + 0x24]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x502739
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 0x502739
test ecx, ecx
je 0x502739
mov edx, dword [ecx]
push 1
call dword [edx]
test edi, edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x20], 0xffffffff
je 0x5028b4
mov ecx, dword [edi + 0x24]
dec ecx
mov eax, ecx
mov dword [edi + 0x24], ecx
test eax, eax
jg 0x5028b4
mov eax, dword [edi]
push 1
mov ecx, edi
jmp 0x5028b2
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 0x50279e
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 0x50279e
test ecx, ecx
je 0x50279e
mov edx, dword [ecx]
push 1
call dword [edx]
push 0x28
call fcn.00492990
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov byte [esp + 0x20], 1
je 0x5027e1
mov ecx, edi
call fcn.004c4430
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], 0x686620
call fcn.004c4470
jmp 0x5027e3
xor edi, edi
test edi, edi
mov byte [esp + 0x20], 0
mov dword [esi + 0x14], edi
jne 0x5027f7
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x502805
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 0x502893
jmp 0x50281d
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 0x502883
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 0x502864
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 0x502819
test ebx, ebx
mov dword [esp + 0x20], 0xffffffff
je 0x5028b4
mov ecx, dword [ebx + 0x24]
dec ecx
mov eax, ecx
mov dword [ebx + 0x24], ecx
test eax, eax
jg 0x5028b4
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