Function at 0x50a1c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57eff6
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 0x50a36f
dec eax
jne 0x50a49a
push 0x40e
mov ecx, 0x7755ac
call fcn.0054d610
mov eax, dword [0x89e864]
mov ecx, dword [eax + 0x80894]
xor edi, edi
cmp ecx, edi
mov ebp, 1
je 0x50a261
mov edx, dword [ecx]
push ebp
call dword [edx]
mov eax, dword [0x89e864]
mov dword [eax + 0x80894], edi
cmp esi, 0xffffffff
jne 0x50a299
mov ecx, dword [esp + 0x58]
mov dword [ecx + 0xb4], edi
cmp dword [eax + 0x80894], edi
je 0x50a27e
mov dword [eax + 0x80894], edi
mov dword [eax + 0x80810], 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 0x59dc5c
push edx
call fcn.0056aefc
push esi
lea eax, [esp + 0x3c]
push str.b_d.img
push eax
call fcn.0056aefc
add esp, 0x18
lea ecx, [esp + 0x2c]
push ecx
push 0x40e
mov ecx, 0x7755ac
call fcn.0054d690
mov ecx, dword [0x89e864]
add ecx, 0x58058
lea eax, [esp + 0x10]
call fcn.00402f80
push 0x13c
call fcn.0056ae19
add esp, 4
mov dword [esp + 0x5c], eax
cmp eax, edi
mov dword [esp + 0x50], ebp
je 0x50a307
mov esi, eax
call fcn.004646f0
jmp 0x50a309
xor eax, eax
mov dword [esp + 0x50], 0xffffffff
mov ecx, dword [0x89e864]
lea edx, [esp + 0x10]
push edx
lea ebx, [ecx + 0x58058]
mov dword [ecx + 0x80894], eax
lea esi, [ecx + 0x80894]
call fcn.00403000
mov ecx, dword [esi]
mov dword [ecx + 0x1c], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push 0x59dc50
call dword [edx + 4]
mov eax, dword [esp + 0x58]
mov ecx, dword [0x89e864]
pop edi
mov dword [eax + 0xb4], ebp
pop esi
mov dword [ecx + 0x80810], ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 8
push 0x40d
mov ecx, 0x7755ac
call fcn.0054d610
mov eax, dword [0x89e864]
mov ecx, dword [eax + 0x80898]
xor edi, edi
cmp ecx, edi
mov ebp, 1
je 0x50a3a4
mov edx, dword [ecx]
push ebp
call dword [edx]
mov eax, dword [0x89e864]
mov dword [eax + 0x80898], edi
cmp esi, 0xffffffff
jne 0x50a3dc
mov ecx, dword [esp + 0x58]
mov dword [ecx + 0xb0], edi
cmp dword [eax + 0x80898], edi
je 0x50a3c1
mov dword [eax + 0x80898], edi
mov dword [eax + 0x8080c], 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 0x59dc68
push edx
call fcn.0056aefc
push esi
lea eax, [esp + 0x3c]
push str.f_d.img
push eax
call fcn.0056aefc
add esp, 0x18
lea ecx, [esp + 0x2c]
push ecx
push 0x40d
mov ecx, 0x7755ac
call fcn.0054d690
mov ecx, dword [0x89e864]
add ecx, 0x58058
lea eax, [esp + 0x10]
call fcn.00402f80
push 0x38
call fcn.0056ae19
add esp, 4
mov dword [esp + 0x5c], eax
cmp eax, edi
mov dword [esp + 0x50], edi
je 0x50a447
mov esi, eax
call fcn.00485e20
jmp 0x50a449
xor eax, eax
mov dword [esp + 0x50], 0xffffffff
mov ecx, dword [0x89e864]
lea edx, [esp + 0x10]
push edx
lea ebx, [ecx + 0x58058]
mov dword [ecx + 0x80898], eax
lea esi, [ecx + 0x80898]
call fcn.00403000
mov ecx, dword [esi]
mov dword [ecx + 0x1c], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push 0x59dc50
call dword [edx + 4]
mov eax, dword [esp + 0x58]
mov ecx, dword [0x89e864]
mov dword [eax + 0xb0], ebp
mov dword [ecx + 0x8080c], ebp
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 8