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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x62ccdb
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x78]
push edi
xor edi, edi
lea ebp, [eax - 1]
test ebp, ebp
jl 0x5b44f0
mov eax, dword [ebx + 0x74]
mov ecx, dword [eax + ebp*4]
mov esi, dword [ecx + 0xc]
test esi, esi
je 0x5b44e5
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5b44e5
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, dword [esp + 0x44]
jne 0x5b44e5
mov edx, dword [ebx + 0x74]
mov edi, dword [edx + ebp*4]
dec ebp
jns 0x5b44ba
test edi, edi
jne 0x5b46c0
mov esi, dword [esp + 0x48]
test esi, esi
jne 0x5b450c
mov ecx, dword [ebx + 8]
mov eax, dword [esp + 0x44]
push eax
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 8]
call fcn.005fc137
push 0x40
call fcn.005f2f36
mov ebp, eax
add esp, 4
mov dword [esp + 0x44], ebp
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x3c], edi
je 0x5b4567
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x24]
push edx
call fcn.005b4e50
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
push esi
mov ecx, ebp
call fcn.005b4b60
mov esi, eax
mov dword [esp + 0x4c], esi
jmp 0x5b456d
mov dword [esp + 0x4c], edi
mov esi, edi
mov edx, dword [esi]
push ebx
mov ecx, esi
mov dword [esp + 0x40], 0xffffffff
call dword [edx + 4]
mov edx, dword [ebx + 0x78]
mov eax, dword [ebx + 0x74]
mov ebp, edx
mov dword [esp + 0x10], ebp
inc ebp
cmp ebp, edi
jne 0x5b45b3
cmp eax, edi
je 0x5b459e
push eax
call fcn.005f2f5f
add esp, 4
mov dword [ebx + 0x74], edi
mov eax, dword [ebx + 0x74]
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x7c], edi
mov dword [ebx + 0x78], edi
mov dword [eax + ecx*4], esi
jmp 0x5b46cd
cmp eax, edi
jne 0x5b45f5
lea edi, [ebp*4]
push edi
call fcn.005f2f36
mov edx, eax
mov ecx, edi
mov dword [ebx + 0x74], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x74]
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x7c], ebp
mov dword [ebx + 0x78], ebp
mov dword [eax + ecx*4], esi
jmp 0x5b46cd
mov ecx, dword [ebx + 0x7c]
cmp ebp, ecx
jg 0x5b461d
cmp ebp, edx
jle 0x5b460b
mov ecx, ebp
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x74]
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x78], ebp
mov dword [eax + ecx*4], esi
jmp 0x5b46cd
mov eax, dword [ebx + 0x80]
cmp eax, edi
jne 0x5b464a
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x5b463e
mov eax, 4
jmp 0x5b464a
cmp eax, 0x400
jle 0x5b464a
mov eax, 0x400
add eax, ecx
cmp ebp, eax
mov dword [esp + 0x44], eax
jl 0x5b4658
mov dword [esp + 0x44], ebp
mov eax, dword [esp + 0x44]
lea ecx, [eax*4]
push ecx
call fcn.005f2f36
mov ecx, dword [ebx + 0x78]
mov esi, dword [ebx + 0x74]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x4c], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x78]
mov ecx, ebp
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x74]
push eax
call fcn.005f2f5f
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x54]
mov dword [ebx + 0x74], ecx
mov eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x78], ebp
mov dword [ebx + 0x7c], edx
add esp, 8
mov dword [eax + ecx*4], esi
jmp 0x5b46cd
mov edx, dword [esp + 0x4c]
lea ecx, [edi + 0x10]
push edx
call fcn.005b4e70
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc