Function at 0x501d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5729f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
xor eax, eax
push ebx
mov dword [esp + 4], eax
push ebp
mov dword [esp + 0xc], eax
push esi
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ecx
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x58]
dec eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
push edi
mov byte [esp + 0x44], cl
je 0x501f3f
dec eax
jne 0x50206a
push 0x40e
mov ecx, 0x7694ec
call fcn.00540db0
mov eax, dword [0x8927a4]
mov ecx, dword [eax + 0x80784]
xor edi, edi
cmp ecx, edi
mov ebp, 1
je 0x501e31
mov edx, dword [ecx]
push ebp
call dword [edx]
mov eax, dword [0x8927a4]
mov dword [eax + 0x80784], edi
cmp esi, 0xffffffff
jne 0x501e69
mov ecx, dword [esp + 0x58]
mov dword [ecx + 0xb4], edi
cmp dword [eax + 0x80784], edi
je 0x501e4e
mov dword [eax + 0x80784], edi
mov dword [eax + 0x80700], edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 8
push esi
lea edx, [esp + 0x14]
push 0x592638
push edx
call fcn.0055e68c
push esi
lea eax, [esp + 0x3c]
push str.b_d.img
push eax
call fcn.0055e68c
add esp, 0x18
lea ecx, [esp + 0x2c]
push ecx
push 0x40e
mov ecx, 0x7694ec
call fcn.00540e30
mov ecx, dword [0x8927a4]
add ecx, 0x57f48
lea eax, [esp + 0x10]
call fcn.00402fc0
push 0x13c
call fcn.0055e5a9
add esp, 4
mov dword [esp + 0x5c], eax
cmp eax, edi
mov dword [esp + 0x50], ebp
je 0x501ed7
mov esi, eax
call fcn.00461f60
jmp 0x501ed9
xor eax, eax
mov dword [esp + 0x50], 0xffffffff
mov ecx, dword [0x8927a4]
lea edx, [esp + 0x10]
push edx
lea ebx, [ecx + 0x57f48]
mov dword [ecx + 0x80784], eax
lea esi, [ecx + 0x80784]
call fcn.00403040
mov ecx, dword [esi]
mov dword [ecx + 0x1c], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push 0x59262c
call dword [edx + 4]
mov eax, dword [esp + 0x58]
mov ecx, dword [0x8927a4]
pop edi
mov dword [eax + 0xb4], ebp
pop esi
mov dword [ecx + 0x80700], ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 8
push 0x40d
mov ecx, 0x7694ec
call fcn.00540db0
mov eax, dword [0x8927a4]
mov ecx, dword [eax + 0x80788]
xor edi, edi
cmp ecx, edi
mov ebp, 1
je 0x501f74
mov edx, dword [ecx]
push ebp
call dword [edx]
mov eax, dword [0x8927a4]
mov dword [eax + 0x80788], edi
cmp esi, 0xffffffff
jne 0x501fac
mov ecx, dword [esp + 0x58]
mov dword [ecx + 0xb0], edi
cmp dword [eax + 0x80788], edi
je 0x501f91
mov dword [eax + 0x80788], edi
mov dword [eax + 0x806fc], edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 8
push esi
lea edx, [esp + 0x14]
push 0x592644
push edx
call fcn.0055e68c
push esi
lea eax, [esp + 0x3c]
push str.f_d.img
push eax
call fcn.0055e68c
add esp, 0x18
lea ecx, [esp + 0x2c]
push ecx
push 0x40d
mov ecx, 0x7694ec
call fcn.00540e30
mov ecx, dword [0x8927a4]
add ecx, 0x57f48
lea eax, [esp + 0x10]
call fcn.00402fc0
push 0x38
call fcn.0055e5a9
add esp, 4
mov dword [esp + 0x5c], eax
cmp eax, edi
mov dword [esp + 0x50], edi
je 0x502017
mov esi, eax
call fcn.00480e00
jmp 0x502019
xor eax, eax
mov dword [esp + 0x50], 0xffffffff
mov ecx, dword [0x8927a4]
lea edx, [esp + 0x10]
push edx
lea ebx, [ecx + 0x57f48]
mov dword [ecx + 0x80788], eax
lea esi, [ecx + 0x80788]
call fcn.00403040
mov ecx, dword [esi]
mov dword [ecx + 0x1c], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push 0x59262c
call dword [edx + 4]
mov eax, dword [esp + 0x58]
mov ecx, dword [0x8927a4]
mov dword [eax + 0xb0], ebp
mov dword [ecx + 0x806fc], ebp
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 8