Function at 0x4a5090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x24]
lea eax, [esp + 0x14]
push 0x40000
xor ebx, ebx
push eax
push edi
mov dword [esp + 0x44], ebx
call sub.CRLUTL110.dll__MEMMANAllocLock_12
test eax, eax
jne 0x4a50c3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x28]
lea ecx, [esp + 0x20]
push 0x8000
push ecx
push esi
call sub.CRLUTL110.dll__MEMMANAllocLock_12
test eax, eax
jne 0x4a50e9
push esi
call sub.CRLUTL110.dll__MEMMANUnlockFree_4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x10], ebx
cmp eax, ebx
mov ebx, dword [ebp + 0x18]
je 0x4a512e
lea edx, [ebx + ebx*2]
lea eax, [esp + 0x2c]
shl edx, 2
push edx
lea ecx, [esp + 0x50]
push eax
push ecx
call sub.CRLUTL110.dll__MEMMANAllocLock_12
test eax, eax
jne 0x4a5126
push edi
call sub.CRLUTL110.dll__MEMMANUnlockFree_4
push esi
call sub.CRLUTL110.dll__MEMMANUnlockFree_4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [esp + 0x28], ecx
jmp 0x4a5132
mov ecx, dword [esp + 0x28]
mov edx, dword [ebp + 0xc]
mov al, byte [edx]
shr eax, 3
and eax, 1
mov dword [esp + 0x3c], eax
lea eax, [ecx + ecx*2]
shl eax, 2
mov dword [esp + 0x1c], eax
jmp 0x4a5150
mov ebx, dword [ebp + 0x18]
call sub.CRLUTL110.dll__UICUR_UpdateWaitCursor_0
mov esi, dword [ebp + 0x14]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x24], edi
jle 0x4a53bc
mov al, byte [esi + 0x1c]
test al, al
je 0x4a517f
inc edi
add esi, 0x20
cmp edi, ebx
mov dword [esp + 0x24], edi
jge 0x4a53bc
jmp 0x4a5166
cmp edi, ebx
jge 0x4a53bc
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], edx
mov al, byte [ecx + eax]
and al, 0xc0
cmp al, 0x40
jne 0x4a51c0
mov eax, dword [ebp + 8]
lea ecx, [eax + ecx*8]
mov eax, dword [esp + 0x14]
lea edx, [eax + edx*8]
push edx
push esi
push ecx
add ecx, 0xfffffff8
push ecx
call fcn.004a8360
jmp 0x4a51fe
cmp al, 0x80
jne 0x4a51fe
lea eax, [esp + 0x58]
lea edx, [esp + 0x78]
push eax
mov eax, dword [ebp + 8]
push edx
push esi
lea ecx, [eax + ecx*8 - 0x18]
push ecx
call fcn.004a8400
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x68]
add esp, 0x10
mov dword [eax + ecx*8], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x5c]
mov dword [eax + ecx*8 + 4], edx
mov bl, byte [esp + 0x3c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
and bl, 1
shl bl, 3
mov dl, bl
mov byte [esp + 0x1b], bl
or dl, 4
mov byte [ecx + eax], dl
mov eax, dword [esp + 0x10]
inc eax
mov ecx, esi
mov dword [esp + 0x10], eax
mov esi, edi
mov edx, dword [ebp + 0x18]
lea eax, [esi + 1]
cmp eax, edx
mov byte [ecx + 0x1c], 1
jne 0x4a5239
xor eax, eax
mov edx, dword [ebp + 0x14]
shl eax, 5
add eax, edx
mov edx, dword [ecx + 0x10]
mov esi, eax
mov edi, dword [esi + 0x10]
cmp edx, edi
jne 0x4a52c2
fld qword [ecx]
mov eax, dword [esi]
mov ebx, dword [esi + 4]
fst qword [esp + 0x50]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 0x41
je 0x4a52be
mov ecx, dword [esp + 0x10]
inc ecx
cmp ecx, 0x8000
jge 0x4a5531
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push 1
push eax
mov eax, dword [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x50]
mov ecx, ebx
push ecx
mov ecx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push edx
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.004a8200
add esp, 0x2c
test eax, eax
je 0x4a5531
mov bl, byte [esp + 0x1b]
jmp 0x4a5300
mov bl, byte [esp + 0x1b]
lea eax, [esp + 0x10]
push 1
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push edi
push edx
mov edx, dword [ebp + 0x10]
push edx
push eax
push ecx
call fcn.004a7e40
add esp, 0x38
test eax, eax
je 0x4a5531
mov esi, dword [esi + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, esi
shl ecx, 5
add ecx, edx
cmp esi, eax
je 0x4a531f
cmp esi, dword [esp + 0x30]
jne 0x4a5229
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x3c]
mov dl, byte [eax + esi - 1]
and dl, 0xf7
or dl, bl
and dl, 0xfb
test edi, edi
sete cl
and cl, 1
shl cl, 2
or dl, cl
test edi, edi
mov byte [eax + esi - 1], dl
jne 0x4a5354
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4a537f
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
cmp ecx, edx
jge 0x4a5383
mov eax, dword [esp + 0x14]
lea esi, [eax + ecx*8]
mov edi, dword [eax + ecx*8]
mov dword [eax + edx*8 - 8], edi
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov esi, dword [esp + 0x10]
mov dword [eax + esi*8 - 4], edx
jmp 0x4a5383
mov ecx, dword [esp + 0x34]
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4a514d
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov dword [eax + edx], ecx
mov edx, dword [esp + 0x10]
sub edx, ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + ecx + 4], edx
mov edx, dword [esp + 0x28]
inc edx
add eax, 0xc
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
jmp 0x4a514d
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4a5520
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x4a5486
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x2c]
mov dword [ebx + edx + 8], 0
mov ecx, dword [esp + 0x10]
push 1
mov eax, dword [ebx + edx]
lea esi, [ebx + edx]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
call sub.CRLUTL110.dll__UTLIsSubpathHole_Ex_20
mov edi, eax
test edi, edi
je 0x4a542a
mov eax, dword [esi + 4]
mov ecx, dword [esi]
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
call sub.CRLUTL110.dll__UTLIsSubpathHole_Ex_20
mov edi, eax
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
push edx
lea edx, [ecx + eax*8]
push edx
call sub.CRLUTL110.dll__UTLSubpathArea_8
fcomp qword [0x51be98]
fnstsw ax
test ah, 0x41
jne 0x4a5451
mov eax, 1
jmp 0x4a5453
xor eax, eax
mov ecx, dword [ebp + 0x1c]
test edi, edi
je 0x4a5460
cmp eax, ecx
je 0x4a5464
jmp 0x4a5470
cmp eax, ecx
je 0x4a5470
mov eax, 1
mov dword [esi + 8], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
add ebx, 0xc
dec eax
mov dword [esp + 0x1c], eax
jne 0x4a53d9
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
xor edx, edx
cmp ecx, edx
je 0x4a5520
cmp eax, edx
mov dword [esp + 0x10], edx
jle 0x4a5520
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4a550a
mov esi, dword [eax]
cmp edx, esi
je 0x4a54f8
mov ecx, dword [eax + 4]
mov edi, dword [esp + 0x14]
shl ecx, 3
mov ebx, ecx
lea esi, [edi + esi*8]
lea edi, [edi + edx*8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax + 4]
mov esi, dword [eax]
mov edi, dword [esp + 0x20]
mov ebx, ecx
add esi, edi
add edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x10]
add esi, ecx
mov dword [esp + 0x10], esi
mov ecx, dword [eax + 4]
add edx, ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
add ecx, 0xc
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
jne 0x4a54a8
mov edx, dword [ebp + 0x2c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], 1
mov dword [edx], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4a5542
lea ecx, [esp + 0x4c]
push ecx
call sub.CRLUTL110.dll__MEMMANUnlockFree_4
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
push eax
call sub.CRLUTL110.dll__MEMMANUnlock_4
mov ecx, dword [ebp + 0x28]
mov edx, dword [ecx]
push edx
call sub.CRLUTL110.dll__MEMMANUnlock_4
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret