Function at 0x4d59b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f53e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov eax, dword [esi + 0x40]
sub eax, dword [esi + 0x44]
cmp eax, 0x20
jae 0x4d5a0a
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0x60]
lea ecx, [esi + 0xc]
add esi, 0x30
push esi
push edi
call eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ebx, dword [edi + 4]
push ebx
mov dword [esp + 0x28], ebx
call fcn.004b4f50
add esp, 4
test ebx, ebx
jne 0x4d5a22
xor ebp, ebp
jmp 0x4d5a2b
mov eax, ebx
call fcn.004b45b0
mov ebp, eax
mov ecx, dword [edi + 8]
lea eax, [ebx*4]
push eax
push ecx
push eax
push ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCR90.dll_memcpy_s]
add esp, 0x10
mov dword [esp + 0x34], 0
mov ecx, dword [esi + 0x40]
lea edx, [ecx + 0x1f]
lea eax, [ebx - 1]
shr edx, 5
cmp eax, edx
jb 0x4d5b24
mov edx, dword [ebp + eax*4]
test cl, 0x1f
je 0x4d5aaa
mov ecx, dword [esi + 0x40]
mov edi, ecx
shr edi, 5
mov ebx, eax
sub ebx, edi
lea edi, [ebp + ebx*4]
and ecx, 0x1f
mov ebx, edx
shr ebx, cl
xor dword [edi], ebx
mov edi, dword [esi + 0x40]
mov ecx, edi
shr ecx, 5
mov ebx, eax
sub ebx, ecx
and edi, 0x1f
mov ecx, 0x20
sub ecx, edi
mov edi, edx
shl edi, cl
lea ebx, [ebp + ebx*4 - 4]
xor dword [ebx], edi
jmp 0x4d5ab9
shr ecx, 5
mov edi, eax
sub edi, ecx
xor dword [ebp + edi*4], edx
lea ecx, [ebp + edi*4]
mov ecx, dword [esi + 0x40]
sub ecx, dword [esi + 0x44]
test cl, 0x1f
je 0x4d5b03
mov ecx, dword [esi + 0x40]
sub ecx, dword [esi + 0x44]
mov ebx, eax
mov edi, ecx
shr edi, 5
sub ebx, edi
lea edi, [ebp + ebx*4]
and ecx, 0x1f
mov ebx, edx
shr ebx, cl
xor dword [edi], ebx
mov edi, dword [esi + 0x40]
sub edi, dword [esi + 0x44]
mov ebx, eax
mov ecx, edi
shr ecx, 5
sub ebx, ecx
and edi, 0x1f
mov ecx, 0x20
sub ecx, edi
shl edx, cl
lea ebx, [ebp + ebx*4 - 4]
xor dword [ebx], edx
jmp 0x4d5b12
shr ecx, 5
mov edi, eax
sub edi, ecx
xor dword [ebp + edi*4], edx
lea ecx, [ebp + edi*4]
mov ecx, dword [esi + 0x40]
lea edx, [ecx + 0x1f]
dec eax
shr edx, 5
cmp eax, edx
jae 0x4d5a66
mov ecx, dword [esi + 0x40]
lea edx, [ecx + 0x1f]
shr edx, 5
dec edx
cmp eax, edx
jne 0x4d5bd9
test cl, 0x1f
je 0x4d5bd9
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ebx, eax
dec edx
mov edi, edx
not edi
and edi, dword [ebp + eax*4]
and dword [ebp + eax*4], edx
mov ecx, dword [esi + 0x40]
mov edx, ecx
shr edx, 5
sub ebx, edx
lea edx, [ebp + ebx*4]
and ecx, 0x1f
mov ebx, edi
shr ebx, cl
xor dword [edx], ebx
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
sub edx, ecx
test dl, 0x1f
je 0x4d5bc9
mov ecx, dword [esi + 0x40]
sub ecx, dword [esi + 0x44]
mov ebx, eax
mov edx, ecx
shr edx, 5
sub ebx, edx
lea edx, [ebp + ebx*4]
and ecx, 0x1f
mov ebx, edi
shr ebx, cl
xor dword [edx], ebx
mov ecx, dword [esi + 0x40]
mov edx, ecx
sub edx, dword [esi + 0x44]
and ecx, 0x1f
and edx, 0x1f
cmp dl, cl
jbe 0x4d5bd9
mov edx, dword [esi + 0x40]
sub edx, dword [esi + 0x44]
mov ecx, edx
shr ecx, 5
sub eax, ecx
and edx, 0x1f
mov ecx, 0x20
sub ecx, edx
lea eax, [ebp + eax*4 - 4]
shl edi, cl
jmp 0x4d5bd7
mov edx, dword [esi + 0x40]
sub edx, ecx
shr edx, 5
sub eax, edx
lea eax, [ebp + eax*4]
xor dword [eax], edi
mov ecx, dword [esi + 0x4c]
mov edi, dword [esi + 0x50]
test ecx, ecx
jbe 0x4d5be7
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x18], ecx
cmp eax, ecx
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
jb 0x4d5c02
lea ecx, [esp + 0x18]
mov ecx, dword [ecx]
mov eax, dword [esi + 0x50]
add ecx, ecx
add ecx, ecx
push ecx
push ebp
push eax
call sub.MSVCR90.dll_memcpy
mov edx, dword [esp + 0x28]
push edx
push 0
push ebp
add esi, 0x48
mov dword [esp + 0x4c], 0xffffffff
call sub.MSVCR90.dll_memset
push ebp
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x1c
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret