Function at 0x5098a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov ebx, eax
lea edi, [ebp - 0x24]
xor eax, eax
push ebp
push 0x509c73
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x58], 0xf
jne 0x509c5d
mov dl, 1
mov eax, dword [0x4610b8]
call fcn.00429d68
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x509c56
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebx + 0x30]
mov eax, dword [ebp - 4]
call fcn.004651f0
mov edx, edi
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebx + 0x30]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x68]
call fcn.004295ec
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004295f4
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0x30]
call fcn.00466614
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0042a7a8
mov esi, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0042a78c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.00405310
test eax, eax
jne 0x509967
mov edx, 0x509c8c
mov eax, dword [ebp - 4]
call fcn.0042a7a8
mov esi, eax
mov ecx, 0x3c
mov edx, 0xf0caa6
mov eax, dword [ebp - 4]
call fcn.00506290
mov dword [ebp - 8], eax
mov ecx, 0x3c
mov edx, 0xf0caa6
mov eax, dword [ebp - 4]
call fcn.00506290
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call sub.user32.dll_InflateRect
mov eax, esi
dec eax
add dword [edi + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.00429d34
mov eax, dword [ebx + 0x30]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004298f8
mov eax, dword [edi + 8]
push eax
mov eax, dword [edi + 0xc]
push eax
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
call fcn.0042a514
mov edx, edi
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, esi
sar eax, 1
jns 0x5099e7
adc eax, 0
dec eax
add dword [edi + 4], eax
mov eax, dword [ebx + 0x30]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004298f8
mov edx, dword [edi]
inc edx
mov ecx, dword [edi + 4]
mov eax, dword [ebp - 4]
call fcn.0042a420
mov edx, dword [edi]
inc edx
mov ecx, dword [edi + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042a3c0
mov eax, dword [ebx + 0x30]
cmp byte [eax + 0x1a5], 0
je 0x509a39
mov eax, dword [ebp - 8]
push eax
push 1
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004389a8
jmp 0x509a4c
mov eax, dword [ebp - 8]
push eax
push 1
mov edx, edi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004389a8
mov edx, edi
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, esi
sar eax, 1
jns 0x509a5f
adc eax, 0
add eax, dword [edi + 4]
inc eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00429d34
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x170]
call fcn.00429bf0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.00429bf8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.00429bf0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004298f8
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0042a2f8
mov eax, dword [ebx + 0x30]
call fcn.00466c60
test al, al
je 0x509ada
mov eax, dword [ebp - 4]
mov dword [eax + 0x54], 0x80
mov eax, dword [edi + 8]
sub eax, 9
mov dword [ebp - 0x2c], eax
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
jmp 0x509ae8
mov eax, dword [edi]
add eax, 9
mov dword [ebp - 0x34], eax
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x30], eax
add eax, esi
mov dword [ebp - 0x28], eax
push 0
push 0xffffffffffffffff
push edi
call sub.user32.dll_InflateRect
mov eax, dword [edi + 0xc]
mov dword [edi + 4], eax
mov edx, esi
sar edx, 1
jns 0x509b0c
adc edx, 0
add edx, eax
inc edx
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00429d34
mov eax, dword [ebp - 0x34]
mov dword [edi], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x30]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.00429bf8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.00429bf0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004298f8
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0042a2f8
lea edx, [ebp - 0x44]
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x3c]
mov dword [edi + 8], eax
mov edx, dword [edi + 8]
sub edx, 2
mov ecx, dword [edi + 4]
mov eax, dword [ebp - 4]
call fcn.0042a420
mov edx, dword [edi + 8]
sub edx, 2
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0042a3c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.00429d34
mov eax, dword [ebx + 0x30]
call fcn.00466c60
test al, al
je 0x509bb3
mov eax, dword [ebp - 4]
mov dword [eax + 0x54], 0x80
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0042a6a8
mov edx, edi
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x44]
sar esi, 1
jns 0x509bda
adc esi, 0
inc esi
add dword [edi + 4], esi
mov eax, dword [ebx + 0x30]
cmp byte [eax + 0x1a5], 0
je 0x509bfa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004298f8
jmp 0x509c08
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
call fcn.004298f8
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
call fcn.0042a420
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0042a3c0
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0042a420
mov edx, dword [edi + 8]
dec edx
mov ecx, dword [edi + 4]
mov eax, dword [ebp - 4]
call fcn.0042a3c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509c5d
mov eax, dword [ebp - 4]
call fcn.004041c4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509c7a
lea eax, [ebp - 0x14]
call fcn.00405050
ret