Function at 0x508688
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4443ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
lea ebp, [ebx + 0xc]
push edi
mov esi, ebp
call fcn.00508bc8
push 0x45ad54
call dword [fcn.00449024]
mov edi, 0x45ad54
mov dword [esp + 0x10], edi
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov eax, dword [ebx]
cmp eax, ecx
mov dword [esp + 0x14], ecx
jle 0x50896e
jmp 0x5086de
mov ebx, ecx
mov esi, dword [esp + 0x14]
mov eax, dword [ebx + 4]
add esi, esi
add esi, esi
lea ecx, [esi + eax]
mov eax, dword [ecx]
movzx edx, word [eax + 0xc]
add eax, 0xc
cmp dx, 0x2f
je 0x508705
cmp dx, 0x2d
jne 0x5088b4
cmp word [eax + 2], 0
je 0x5088b4
mov eax, 1
lea esi, [esp + 0x20]
call fcn.004e3698
mov esi, eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x34], 1
mov eax, dword [esi]
push eax
call dword [fcn.00449024]
mov ebx, dword [fcn.00449028]
push edi
call ebx
test eax, eax
jg 0x508756
mov ebx, dword [edi + 8]
mov esi, 0x45af88
call fcn.004f4e28
mov esi, dword [esp + 0x1c]
mov ebx, dword [fcn.00449028]
mov edi, dword [esi]
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x14], edi
mov esi, eax
call ebx
test eax, eax
jg 0x508787
mov ebx, dword [esi + 8]
mov edi, esi
mov esi, 0x45af88
call fcn.004f4e28
mov edi, dword [esp + 0x10]
mov ebx, dword [fcn.00449028]
lea esi, [edi + 0xc]
push 0x3a
push esi
call fcn.00509bf3
add esp, 8
test eax, eax
je 0x508871
sub eax, edi
sub eax, 0xc
sar eax, 1
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x508871
inc eax
lea esi, [esp + 0x18]
lea ecx, [esp + 0x10]
call fcn.004e3698
mov byte [esp + 0x34], 2
mov eax, dword [esp + 0x1c]
lea esi, [esp + 0x24]
lea ecx, [esp + 0x10]
call fcn.004df318
mov esi, eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x34], 3
mov eax, dword [esi]
push eax
call dword [fcn.00449024]
push edi
call ebx
test eax, eax
jg 0x50880b
mov ebx, dword [edi + 8]
mov edi, dword [esp + 0x10]
mov esi, 0x45af88
call fcn.004f4e28
mov esi, dword [esp + 0x1c]
mov ebx, dword [fcn.00449028]
mov ecx, dword [esi]
mov byte [esp + 0x34], 2
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x14], ecx
mov edi, eax
call ebx
test eax, eax
jg 0x508836
mov ebx, dword [edi + 8]
mov esi, 0x45af88
call fcn.004f4e28
mov ebx, dword [fcn.00449028]
mov eax, dword [esp + 0x10]
add eax, 0xc
call fcn.004fe8d8
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
mov edi, ebp
call fcn.00508cb8
mov byte [esp + 0x34], 0
mov edi, dword [esp + 0x18]
push edi
call ebx
test eax, eax
jg 0x508955
mov ebx, dword [edi + 8]
jmp 0x50894b
push 0x45ad54
call dword [fcn.00449024]
mov dword [esp + 0x1c], 0x45ad54
mov eax, esi
mov byte [esp + 0x34], 4
call fcn.004fe8d8
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
mov edi, ebp
call fcn.00508cb8
push 0x45ad54
mov byte [esp + 0x38], 0
call ebx
jmp 0x50893c
push 0x45ad54
call dword [fcn.00449024]
mov dword [esp + 0x1c], 0x45ad54
mov byte [esp + 0x34], 5
mov edi, dword [ebx + 4]
mov eax, 0x45ad60
add edi, esi
call fcn.004fe8d8
mov ebx, eax
mov esi, ebp
call fcn.00508d98
lea esi, [ebp + 0x18]
mov ebx, eax
call fcn.004f6d48
mov esi, eax
mov dword [esp + 0x28], esi
mov byte [esp + 0x34], 6
test esi, esi
je 0x508921
push 0x45ad54
mov dword [esi], 0x45ad54
call dword [fcn.00449024]
mov byte [esp + 0x34], 7
mov edi, dword [edi]
push edi
mov dword [esi + 4], edi
call dword [fcn.00449024]
jmp 0x508923
xor esi, esi
mov edx, dword [ebp + 4]
inc dword [ebp + 0xc]
push 0x45ad54
mov dword [edx + ebx*4], esi
mov byte [esp + 0x38], 0
call dword [fcn.00449028]
test eax, eax
jg 0x508955
mov ebx, dword [0x45ad5c]
mov edi, 0x45ad54
mov esi, 0x45af88
call fcn.004f4e28
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x10]
inc eax
cmp eax, dword [ecx]
mov dword [esp + 0x14], eax
jl 0x5086dc
push edi
mov dword [esp + 0x38], 0xffffffff
call dword [fcn.00449028]
test eax, eax
jg 0x50898e
mov ebx, dword [edi + 8]
mov esi, 0x45af88
call fcn.004f4e28
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 4